2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

Fixing 'progressEvent' type (#2851)

* Fix 'progressEvent' type

* Update axios.ts
This commit is contained in:
Benny Neugebauer
2020-03-28 10:51:42 +01:00
committed by GitHub
parent 885ada6d9b
commit c120f44d3d
2 changed files with 4 additions and 4 deletions
Vendored
+2 -2
View File
@@ -59,8 +59,8 @@ export interface AxiosRequestConfig {
responseType?: ResponseType;
xsrfCookieName?: string;
xsrfHeaderName?: string;
onUploadProgress?: (progressEvent: any) => void;
onDownloadProgress?: (progressEvent: any) => void;
onUploadProgress?: (progressEvent: ProgressEvent) => void;
onDownloadProgress?: (progressEvent: ProgressEvent) => void;
maxContentLength?: number;
maxBodyLength?: number;
validateStatus?: (status: number) => boolean;
+2 -2
View File
@@ -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,