mirror of
https://github.com/axios/axios.git
synced 2026-04-11 14:21:59 +08:00
Change AxiosProgressEvent.event type to any; (#5308)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
parent
6d367b9e2c
commit
a6efeaf2d9
@ -321,6 +321,8 @@ declare namespace axios {
|
||||
serialize?: CustomParamsSerializer;
|
||||
}
|
||||
|
||||
type BrowserProgressEvent = any;
|
||||
|
||||
interface AxiosProgressEvent {
|
||||
loaded: number;
|
||||
total?: number;
|
||||
@ -330,6 +332,7 @@ declare namespace axios {
|
||||
estimated?: number;
|
||||
upload?: boolean;
|
||||
download?: boolean;
|
||||
event?: BrowserProgressEvent;
|
||||
}
|
||||
|
||||
interface AxiosRequestConfig<D = any> {
|
||||
|
||||
4
index.d.ts
vendored
4
index.d.ts
vendored
@ -263,6 +263,8 @@ type MaxUploadRate = number;
|
||||
|
||||
type MaxDownloadRate = number;
|
||||
|
||||
type BrowserProgressEvent = any;
|
||||
|
||||
export interface AxiosProgressEvent {
|
||||
loaded: number;
|
||||
total?: number;
|
||||
@ -272,7 +274,7 @@ export interface AxiosProgressEvent {
|
||||
estimated?: number;
|
||||
upload?: boolean;
|
||||
download?: boolean;
|
||||
event?: ProgressEvent;
|
||||
event?: BrowserProgressEvent;
|
||||
}
|
||||
|
||||
type Milliseconds = number;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user