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:
jli02
2019-04-10 10:13:22 -04:00
parent 4c8604248d
commit 402e731f16
+2
View File
@@ -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;