Skip to content

Commit b7e954e

Browse files
Fixing node types (#3237)
The `ProgressEvent` type comes from the `DOM` lib. This is typically unwanted when using axios in a NodeJS environment. Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent 04d45f2 commit b7e954e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export interface AxiosRequestConfig {
5959
responseType?: ResponseType;
6060
xsrfCookieName?: string;
6161
xsrfHeaderName?: string;
62-
onUploadProgress?: (progressEvent: ProgressEvent) => void;
63-
onDownloadProgress?: (progressEvent: ProgressEvent) => void;
62+
onUploadProgress?: (progressEvent: any) => void;
63+
onDownloadProgress?: (progressEvent: any) => void;
6464
maxContentLength?: number;
6565
validateStatus?: ((status: number) => boolean | null);
6666
maxBodyLength?: number;

0 commit comments

Comments
 (0)