Skip to content

Commit c217012

Browse files
committed
hack for node types workspace issue: microsoft/TypeScript#18588
1 parent 753125a commit c217012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/polyfill/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import $mime from "mime/lite.js";
55
const oldFetch = globalThis.fetch;
66

77
// We always polyfill fetch because Node's fetch doesn't support file URLs.
8-
globalThis.fetch = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise<Response> {
8+
(globalThis.fetch as any) = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise<Response> {
99
const request = new Request(resource, options);
1010

1111
const url = new URL(request.url);

0 commit comments

Comments
 (0)