mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Fixing 'progressEvent' type (#2851)
* Fix 'progressEvent' type * Update axios.ts
This commit is contained in:
@@ -31,8 +31,8 @@ const config: AxiosRequestConfig = {
|
||||
responseType: 'json',
|
||||
xsrfCookieName: 'XSRF-TOKEN',
|
||||
xsrfHeaderName: 'X-XSRF-TOKEN',
|
||||
onUploadProgress: (progressEvent: any) => {},
|
||||
onDownloadProgress: (progressEvent: any) => {},
|
||||
onUploadProgress: (progressEvent: ProgressEvent) => {},
|
||||
onDownloadProgress: (progressEvent: ProgressEvent) => {},
|
||||
maxContentLength: 2000,
|
||||
maxBodyLength: 2000,
|
||||
validateStatus: (status: number) => status >= 200 && status < 300,
|
||||
|
||||
Reference in New Issue
Block a user