diff --git a/index.d.ts b/index.d.ts index da0e867..250191e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -59,8 +59,8 @@ export interface AxiosRequestConfig { responseType?: ResponseType; xsrfCookieName?: string; xsrfHeaderName?: string; - onUploadProgress?: (progressEvent: any) => void; - onDownloadProgress?: (progressEvent: any) => void; + onUploadProgress?: (progressEvent: ProgressEvent) => void; + onDownloadProgress?: (progressEvent: ProgressEvent) => void; maxContentLength?: number; maxBodyLength?: number; validateStatus?: (status: number) => boolean; diff --git a/test/typescript/axios.ts b/test/typescript/axios.ts index e76a19a..c584dfc 100644 --- a/test/typescript/axios.ts +++ b/test/typescript/axios.ts @@ -31,8 +31,8 @@ const config: AxiosRequestConfig = { responseType: 'json', xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', - onUploadProgress: (progressEvent: any) => {}, - onDownloadProgress: (progressEvent: any) => {}, + onUploadProgress: (progressEvent: ProgressEvent) => {}, + onDownloadProgress: (progressEvent: ProgressEvent) => {}, maxContentLength: 2000, maxBodyLength: 2000, validateStatus: (status: number) => status >= 200 && status < 300,