mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #34486 from JasonLi914/fix/nodeFetch/support-legacy-header-init-type
fix(node-fetch): support HeaderInit
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