New issue
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
responseEncoding is missing from typescript definitions #1866
Comments
Still an issue with |
Any workaround? |
It's been over 2 years and I am bit suprise to see no maintainer added a single line to the interface. |
Related to PR #2619 . |
Please look at #2619, it this does not resolve the issue please open a new issue. |
This is still not resolved yet. The PR pointed in the last comment was closed without resolution also. In case anyone else finds this issue, a workaround to at least be able to compile, is to create a .d.ts in your source and add the following code: // eslint-disable-next-line @typescript-eslint/no-unused-vars
import AxiosRequestConfig from "axios";
declare module "axios" {
export interface AxiosRequestConfig {
responseEncoding?: string;
}
} Of course this is not the best "typing" but at least it works until the issue with the types is resolved. |
Please see #4141 |
Summary
the
responseEncoding
property of the axios config is missing from theAxiosRequestConfig
typescript definitions.Context
The property is documented in the README but not present in the typescript definitions.
The text was updated successfully, but these errors were encountered: