File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ export interface AxiosRequestConfig {
5959 responseType ?: ResponseType ;
6060 xsrfCookieName ?: string ;
6161 xsrfHeaderName ?: string ;
62- onUploadProgress ?: ( progressEvent : any ) => void ;
63- onDownloadProgress ?: ( progressEvent : any ) => void ;
62+ onUploadProgress ?: ( progressEvent : ProgressEvent ) => void ;
63+ onDownloadProgress ?: ( progressEvent : ProgressEvent ) => void ;
6464 maxContentLength ?: number ;
6565 maxBodyLength ?: number ;
6666 validateStatus ?: ( status : number ) => boolean ;
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ const config: AxiosRequestConfig = {
3131 responseType : 'json' ,
3232 xsrfCookieName : 'XSRF-TOKEN' ,
3333 xsrfHeaderName : 'X-XSRF-TOKEN' ,
34- onUploadProgress : ( progressEvent : any ) => { } ,
35- onDownloadProgress : ( progressEvent : any ) => { } ,
34+ onUploadProgress : ( progressEvent : ProgressEvent ) => { } ,
35+ onDownloadProgress : ( progressEvent : ProgressEvent ) => { } ,
3636 maxContentLength : 2000 ,
3737 maxBodyLength : 2000 ,
3838 validateStatus : ( status : number ) => status >= 200 && status < 300 ,
You can’t perform that action at this time.
0 commit comments