Due to this commit and this line, typescript raises an error when trying to specify responseTransformer along with headers.
ExampleService.getExample({
headers: {'Accept-Language': 'en'},
async responseTransformer(data) {
// ^^^^^^^^^^^^^^^^^^^ this gets marked as an error
return data.example
}
})
The typescript error is:
Object literal may only specify known properties, and responseTransformer does not exist in type
OmitKeys<OptionsBase<true>, 'headers' | 'responseTransformer'> & GetExampleData & Pick<OptionsBase<true>, 'body'>
My question is: Why is responseTransformer omitted from the OptionsBase type?
Description
Due to this commit and this line, typescript raises an error when trying to specify
responseTransformer
along withheaders
.The typescript error is:
My question is: Why is
responseTransformer
omitted from theOptionsBase
type?Reproducible example or configuration
No response
OpenAPI specification (optional)
No response
System information (optional)
No response