File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,6 +53,20 @@ export type ResponseType =
5353 | 'text'
5454 | 'stream' ;
5555
56+ export type responseEncoding =
57+ | 'ascii' | 'ASCII'
58+ | 'ansi' | 'ANSI'
59+ | 'binary' | 'BINARY'
60+ | 'base64' | 'BASE64'
61+ | 'base64url' | 'BASE64URL'
62+ | 'hex' | 'HEX'
63+ | 'latin1' | 'LATIN1'
64+ | 'ucs-2' | 'UCS-2'
65+ | 'ucs2' | 'UCS2'
66+ | 'utf-8' | 'UTF-8'
67+ | 'utf8' | 'UTF8'
68+ | 'utf16le' | 'UTF16LE' ;
69+
5670export interface TransitionalOptions {
5771 silentJSONParsing ?: boolean ;
5872 forcedJSONParsing ?: boolean ;
@@ -75,6 +89,7 @@ export interface AxiosRequestConfig<D = any> {
7589 adapter ?: AxiosAdapter ;
7690 auth ?: AxiosBasicCredentials ;
7791 responseType ?: ResponseType ;
92+ responseEncoding ?: responseEncoding | string ;
7893 xsrfCookieName ?: string ;
7994 xsrfHeaderName ?: string ;
8095 onUploadProgress ?: ( progressEvent : any ) => void ;
You can’t perform that action at this time.
0 commit comments