diff --git a/src/node.ts b/src/node.ts index 9aa4a9d..cb42992 100644 --- a/src/node.ts +++ b/src/node.ts @@ -33,7 +33,9 @@ export function createNodeFetch() { }; } -export const fetch = globalThis.fetch || createNodeFetch(); +export const fetch = + ((...args: Parameters) => + globalThis.fetch(...args)) || createNodeFetch(); export const Headers = globalThis.Headers || _Headers; export const AbortController = globalThis.AbortController || _AbortController;