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:
Vendored
+2
-1
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user