mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
fix(node-fetch): support HeaderInit
In previous change to fix the HeadersInit type, I renamed HeaderInit to HeadersInit. Ref #34382
This commit is contained in:
Vendored
+2
@@ -172,6 +172,8 @@ export interface ResponseInit {
|
||||
}
|
||||
|
||||
export type HeadersInit = Headers | string[][] | { [key: string]: string };
|
||||
// HeaderInit is exported to support backwards compatibility. See PR #34382
|
||||
export type HeaderInit = HeadersInit;
|
||||
export type BodyInit = ArrayBuffer | ArrayBufferView | NodeJS.ReadableStream | string | URLSearchParams;
|
||||
export type RequestInfo = string | Request;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user