Skip to content

Commit de973f0

Browse files
Adding types for progress event callbacks (axios#4675)
Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent e9c9f33 commit de973f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ export interface AxiosRequestConfig<D = any> {
125125
responseEncoding?: responseEncoding | string;
126126
xsrfCookieName?: string;
127127
xsrfHeaderName?: string;
128-
onUploadProgress?: (progressEvent: any) => void;
129-
onDownloadProgress?: (progressEvent: any) => void;
128+
onUploadProgress?: (progressEvent: ProgressEvent) => void;
129+
onDownloadProgress?: (progressEvent: ProgressEvent) => void;
130130
maxContentLength?: number;
131131
validateStatus?: ((status: number) => boolean) | null;
132132
maxBodyLength?: number;

0 commit comments

Comments
 (0)