File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,26 @@ export interface AxiosProxyConfig {
20
20
}
21
21
}
22
22
23
+ export type Method =
24
+ | 'get'
25
+ | 'delete'
26
+ | 'head'
27
+ | 'options'
28
+ | 'post'
29
+ | 'put'
30
+ | 'patch'
31
+
32
+ export type ResponseType =
33
+ | 'arraybuffer'
34
+ | 'blob'
35
+ | 'document'
36
+ | 'json'
37
+ | 'text'
38
+ | 'stream'
39
+
23
40
export interface AxiosRequestConfig {
24
41
url ?: string ;
25
- method ?: 'get' | 'delete' | 'head' | 'options' | 'post' | 'put' | 'patch' ;
42
+ method ?: Method ;
26
43
baseURL ?: string ;
27
44
transformRequest ?: AxiosTransformer | AxiosTransformer [ ] ;
28
45
transformResponse ?: AxiosTransformer | AxiosTransformer [ ] ;
@@ -34,7 +51,7 @@ export interface AxiosRequestConfig {
34
51
withCredentials ?: boolean ;
35
52
adapter ?: AxiosAdapter ;
36
53
auth ?: AxiosBasicCredentials ;
37
- responseType ?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' ;
54
+ responseType ?: ResponseType ;
38
55
xsrfCookieName ?: string ;
39
56
xsrfHeaderName ?: string ;
40
57
onUploadProgress ?: ( progressEvent : any ) => void ;
You can’t perform that action at this time.
0 commit comments