mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
fix(types): fixed env config types; (#7020)
This commit is contained in:
+5
-2
@@ -424,8 +424,11 @@ declare namespace axios {
|
||||
env?: {
|
||||
FormData?: new (...args: any[]) => object;
|
||||
fetch?: (input: URL | Request | string, init?: RequestInit) => Promise<Response>;
|
||||
Request?: new (input: (RequestInfo | URL), init?: RequestInit) => Request;
|
||||
Response?: new (body?: (BodyInit | null), init?: ResponseInit) => Response;
|
||||
Request?: new (input: URL | Request | string, init?: RequestInit) => Request;
|
||||
Response?: new (
|
||||
body?: ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams | string | null,
|
||||
init?: ResponseInit
|
||||
) => Response;
|
||||
};
|
||||
formSerializer?: FormSerializerOptions;
|
||||
family?: AddressFamily;
|
||||
|
||||
Vendored
+5
-2
@@ -356,8 +356,11 @@ export interface AxiosRequestConfig<D = any> {
|
||||
env?: {
|
||||
FormData?: new (...args: any[]) => object;
|
||||
fetch?: (input: URL | Request | string, init?: RequestInit) => Promise<Response>;
|
||||
Request?: new (input: (RequestInfo | URL), init?: RequestInit) => Request;
|
||||
Response?: new (body?: (BodyInit | null), init?: ResponseInit) => Response;
|
||||
Request?: new (input: URL | Request | string, init?: RequestInit) => Request;
|
||||
Response?: new (
|
||||
body?: ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams | string | null,
|
||||
init?: ResponseInit
|
||||
) => Response;
|
||||
};
|
||||
formSerializer?: FormSerializerOptions;
|
||||
family?: AddressFamily;
|
||||
|
||||
Reference in New Issue
Block a user