2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Adding types for progress event callbacks (#4675)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Johann Cooper
2022-05-20 00:18:56 -07:00
committed by GitHub
parent e9c9f3392b
commit de973f00f3
Vendored
+2 -2
View File
@@ -125,8 +125,8 @@ export interface AxiosRequestConfig<D = any> {
responseEncoding?: responseEncoding | string;
xsrfCookieName?: string;
xsrfHeaderName?: string;
onUploadProgress?: (progressEvent: any) => void;
onDownloadProgress?: (progressEvent: any) => void;
onUploadProgress?: (progressEvent: ProgressEvent) => void;
onDownloadProgress?: (progressEvent: ProgressEvent) => void;
maxContentLength?: number;
validateStatus?: ((status: number) => boolean) | null;
maxBodyLength?: number;