2
0
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:
Dmitriy Mozgovoy
2025-09-12 16:33:42 +03:00
committed by GitHub
parent 0d8ad6e1de
commit b5f26b75bd
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -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
View File
@@ -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;