Skip to content

Commit

Permalink
Fix TS typings for @whatwg-node/fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 20, 2022
1 parent 5d2ccae commit 3207383
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-frogs-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@whatwg-node/fetch': patch
---

Fix TS typings
2 changes: 1 addition & 1 deletion packages/fetch/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3207383

Please sign in to comment.