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