From 8dbb739c03d206274f2e17876aebb39438f6acef Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Sun, 30 Aug 2020 16:05:35 +0200 Subject: [PATCH] Fixing node types The `ProgressEvent` type comes from the `DOM` lib. This is typically unwanted when using axios in a NodeJS environment. --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 74b2acd2cc..8a571eae6d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -59,8 +59,8 @@ export interface AxiosRequestConfig { responseType?: ResponseType; xsrfCookieName?: string; xsrfHeaderName?: string; - onUploadProgress?: (progressEvent: ProgressEvent) => void; - onDownloadProgress?: (progressEvent: ProgressEvent) => void; + onUploadProgress?: (progressEvent: any) => void; + onDownloadProgress?: (progressEvent: any) => void; maxContentLength?: number; validateStatus?: ((status: number) => boolean | null); maxBodyLength?: number;