mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Adding types for progress event callbacks (#4675)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+2
-2
@@ -125,8 +125,8 @@ export interface AxiosRequestConfig<D = any> {
|
|||||||
responseEncoding?: responseEncoding | string;
|
responseEncoding?: responseEncoding | string;
|
||||||
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;
|
||||||
validateStatus?: ((status: number) => boolean) | null;
|
validateStatus?: ((status: number) => boolean) | null;
|
||||||
maxBodyLength?: number;
|
maxBodyLength?: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user