From b7e954eba3911874575ed241ec2ec38ff8af21bb Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 1 Oct 2020 09:42:09 +0200 Subject: [PATCH] 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 --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 74b2acd..8a571ea 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;