Skip to content

Commit

Permalink
Change AxiosProgressEvent.event type to any; (#5308)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
DigitalBrainJS and jasonsaayman committed Dec 1, 2022
1 parent 6d367b9 commit a6efeaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.d.cts
Expand Up @@ -321,6 +321,8 @@ declare namespace axios {
serialize?: CustomParamsSerializer;
}

type BrowserProgressEvent = any;

interface AxiosProgressEvent {
loaded: number;
total?: number;
Expand All @@ -330,6 +332,7 @@ declare namespace axios {
estimated?: number;
upload?: boolean;
download?: boolean;
event?: BrowserProgressEvent;
}

interface AxiosRequestConfig<D = any> {
Expand Down
4 changes: 3 additions & 1 deletion index.d.ts
Expand Up @@ -263,6 +263,8 @@ type MaxUploadRate = number;

type MaxDownloadRate = number;

type BrowserProgressEvent = any;

export interface AxiosProgressEvent {
loaded: number;
total?: number;
Expand All @@ -272,7 +274,7 @@ export interface AxiosProgressEvent {
estimated?: number;
upload?: boolean;
download?: boolean;
event?: ProgressEvent;
event?: BrowserProgressEvent;
}

type Milliseconds = number;
Expand Down

0 comments on commit a6efeaf

Please sign in to comment.