From 402e731f163aefcf948b7cd932cb948397f6ceca Mon Sep 17 00:00:00 2001 From: jli02 Date: Thu, 4 Apr 2019 18:54:39 -0400 Subject: [PATCH] fix(node-fetch): support HeaderInit In previous change to fix the HeadersInit type, I renamed HeaderInit to HeadersInit. Ref #34382 --- types/node-fetch/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/node-fetch/index.d.ts b/types/node-fetch/index.d.ts index df9f6a9652..a480fb00e4 100644 --- a/types/node-fetch/index.d.ts +++ b/types/node-fetch/index.d.ts @@ -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;