diff --git a/types/node-fetch/index.d.ts b/types/node-fetch/index.d.ts index 1ea5542691..b203744a72 100644 --- a/types/node-fetch/index.d.ts +++ b/types/node-fetch/index.d.ts @@ -7,6 +7,7 @@ /// import { Agent } from "http"; +import { URLSearchParams } from "url"; export class Request extends Body { constructor(input: string | { href: string } | Request, init?: RequestInit); @@ -164,7 +165,7 @@ export interface ResponseInit { } export type HeaderInit = Headers | string[]; -export type BodyInit = ArrayBuffer | ArrayBufferView | NodeJS.ReadableStream | string; +export type BodyInit = ArrayBuffer | ArrayBufferView | NodeJS.ReadableStream | string | URLSearchParams; export type RequestInfo = string | Request; export default function fetch(