diff --git a/packages/web/src.ts/index.ts b/packages/web/src.ts/index.ts index 349b119b0..e89858e65 100644 --- a/packages/web/src.ts/index.ts +++ b/packages/web/src.ts/index.ts @@ -1,6 +1,7 @@ "use strict"; -import { default as fetch } from "node-fetch"; +import { default as _fetch, Response, RequestInfo, RequestInit } from "node-fetch"; +const fetch: (url: RequestInfo, options: RequestInit) => Promise = _fetch.bind(global); import { encode as base64Encode } from "@ethersproject/base64"; import * as errors from "@ethersproject/errors";