From c217012f0d11c6c50b5338928c893cfe95d1db15 Mon Sep 17 00:00:00 2001 From: Brent Conn Date: Tue, 10 Oct 2023 15:44:54 -0400 Subject: [PATCH] hack for node types workspace issue: https://github.com/microsoft/TypeScript/issues/18588 --- sdk/src/polyfill/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/polyfill/fetch.ts b/sdk/src/polyfill/fetch.ts index 3c199c3c5..ea17f8e10 100644 --- a/sdk/src/polyfill/fetch.ts +++ b/sdk/src/polyfill/fetch.ts @@ -5,7 +5,7 @@ import $mime from "mime/lite.js"; const oldFetch = globalThis.fetch; // We always polyfill fetch because Node's fetch doesn't support file URLs. -globalThis.fetch = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise { +(globalThis.fetch as any) = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise { const request = new Request(resource, options); const url = new URL(request.url);