diff --git a/index.d.cts b/index.d.cts index 8a9e90e..971a644 100644 --- a/index.d.cts +++ b/index.d.cts @@ -424,8 +424,11 @@ declare namespace axios { env?: { FormData?: new (...args: any[]) => object; fetch?: (input: URL | Request | string, init?: RequestInit) => Promise; - 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; diff --git a/index.d.ts b/index.d.ts index 82b486b..554140e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -356,8 +356,11 @@ export interface AxiosRequestConfig { env?: { FormData?: new (...args: any[]) => object; fetch?: (input: URL | Request | string, init?: RequestInit) => Promise; - 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;