Skip to content

Commit

Permalink
Fixing node types (#3237)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
remcohaszing and jasonsaayman committed Oct 1, 2020
1 parent 04d45f2 commit b7e954e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit b7e954e

Please sign in to comment.