Merge pull request #34486 from JasonLi914/fix/nodeFetch/support-legacy-header-init-type

fix(node-fetch): support HeaderInit
This commit is contained in:
Benjamin Lichtman
2019-04-10 10:19:33 -07:00
committed by GitHub
+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;