Skip to content

Commit

Permalink
hack for node types workspace issue: microsoft/TypeScript#18588
Browse files Browse the repository at this point in the history
  • Loading branch information
onetrickwolf committed Oct 10, 2023
1 parent 753125a commit c217012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/polyfill/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response> {
(globalThis.fetch as any) = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise<Response> {
const request = new Request(resource, options);

const url = new URL(request.url);
Expand Down

0 comments on commit c217012

Please sign in to comment.