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