2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-02 16:04:10 +03:00

Replacing progress with onUploadProgress and onDownloadProgress in TypeScript definitions

This commit is contained in:
Nick Uraltsev
2016-08-23 18:29:25 -07:00
parent 63f41b53aa
commit 96d7ac2a0c
2 changed files with 4 additions and 2 deletions
Vendored
+2 -1
View File
@@ -28,7 +28,8 @@ export interface AxiosRequestConfig {
responseType?: string;
xsrfCookieName?: string;
xsrfHeaderName?: string;
progress?: (progressEvent: any) => void;
onUploadProgress?: (progressEvent: any) => void;
onDownloadProgress?: (progressEvent: any) => void;
maxContentLength?: number;
validateStatus?: (status: number) => boolean;
maxRedirects?: number;
+2 -1
View File
@@ -22,7 +22,8 @@ const config: AxiosRequestConfig = {
responseType: 'json',
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
progress: (progressEvent: any) => {},
onUploadProgress: (progressEvent: any) => {},
onDownloadProgress: (progressEvent: any) => {},
maxContentLength: 2000,
validateStatus: (status: number) => status >= 200 && status < 300,
maxRedirects: 5