mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Change AxiosProgressEvent.event type to any; (#5308)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -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> {
|
||||
|
||||
Vendored
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user