We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axios 1.2.3 introduced changes to its types which break clients generated by Orval:
error TS2345: Argument of type '{ headers?: AxiosRequestHeaders | undefined; url?: string | undefined; method?: string | undefined; baseURL?: string | undefined; transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[] | undefined; ... 31 more ...; formSerializer?: FormSerializerOptions | undefined; }' is not assignable to parameter of type 'AxiosRequestConfig<any>'. Types of property 'headers' are incompatible. Type 'AxiosRequestHeaders | undefined' is not assignable to type 'AxiosRequestHeaders'. Type 'undefined' is not assignable to type 'AxiosRequestHeaders'. Type 'undefined' is not assignable to type 'Partial<RawAxiosHeaders & MethodsHeaders & CommonHeaders>'.
Axios patch-level upgrades shouldn't break existing code. ;-)
openapi-generator, zodios and a couple of other libraries are broken as well. There's an ongoing discussion over at axios/axios#5420
openapi-generator
zodios
The text was updated successfully, but these errors were encountered:
Seems like there is already a PR underway which is supposed to fix this: axios/axios#5486
Sorry, something went wrong.
This is already fixed in Axios and can be closed.
No branches or pull requests
What are the steps to reproduce this issue?
What happens?
Axios 1.2.3 introduced changes to its types which break clients generated by Orval:
What were you expecting to happen?
Axios patch-level upgrades shouldn't break existing code. ;-)
openapi-generator
,zodios
and a couple of other libraries are broken as well. There's an ongoing discussion over at axios/axios#5420The text was updated successfully, but these errors were encountered: