From 320738353832502503ba8ed5785c281af28fde96 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Wed, 20 Jul 2022 15:41:01 +0300 Subject: [PATCH] Fix TS typings for @whatwg-node/fetch --- .changeset/smooth-frogs-love.md | 5 +++++ packages/fetch/dist/index.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/smooth-frogs-love.md diff --git a/.changeset/smooth-frogs-love.md b/.changeset/smooth-frogs-love.md new file mode 100644 index 00000000000..389998cae56 --- /dev/null +++ b/.changeset/smooth-frogs-love.md @@ -0,0 +1,5 @@ +--- +'@whatwg-node/fetch': patch +--- + +Fix TS typings diff --git a/packages/fetch/dist/index.d.ts b/packages/fetch/dist/index.d.ts index c352cede7ee..2ab03316ae3 100644 --- a/packages/fetch/dist/index.d.ts +++ b/packages/fetch/dist/index.d.ts @@ -42,7 +42,7 @@ declare module "@whatwg-node/fetch" { /* For multipart forms, the max number of header key-value pairs to parse. Default: 2000. */ headerSize?: number; } - export const create: (opts?: { useNodeFetch?: boolean; formDataLimits?: FormDataLimits }) => ({ + export const createFetch: (opts?: { useNodeFetch?: boolean; formDataLimits?: FormDataLimits }) => ({ fetch: typeof _fetch, Request: typeof _Request, Response: typeof _Response,