File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export interface AxiosRequestConfig {
62
62
onUploadProgress ?: ( progressEvent : any ) => void ;
63
63
onDownloadProgress ?: ( progressEvent : any ) => void ;
64
64
maxContentLength ?: number ;
65
- validateStatus ?: ( ( status : number ) => boolean | null ) ;
65
+ validateStatus ?: ( ( status : number ) => boolean ) | null ;
66
66
maxBodyLength ?: number ;
67
67
maxRedirects ?: number ;
68
68
socketPath ?: string | null ;
Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ const config: AxiosRequestConfig = {
44
44
cancelToken : new axios . CancelToken ( ( cancel : Canceler ) => { } )
45
45
} ;
46
46
47
+ const nullValidateStatusConfig : AxiosRequestConfig = {
48
+ validateStatus : null
49
+ } ;
50
+
51
+ const undefinedValidateStatusConfig : AxiosRequestConfig = {
52
+ validateStatus : undefined
53
+ } ;
54
+
47
55
const handleResponse = ( response : AxiosResponse ) => {
48
56
console . log ( response . data ) ;
49
57
console . log ( response . status ) ;
You can’t perform that action at this time.
0 commit comments