We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfce0ab commit e92cd73Copy full SHA for e92cd73
src/common/fetch.ts
@@ -41,7 +41,7 @@ let _fetch: WrappedFetch = wrappedFetch(fetchImpl);
41
* Allows customizing the fetch implementation used by the generator.
42
*/
43
export function setFetch(fetch: typeof globalThis.fetch | WrappedFetch) {
44
- _fetch = fetch as WrappedFetch;
+ _fetch = wrappedFetch(fetch as WrappedFetch);
45
}
46
47
export { clearCache, _fetch as fetch }
0 commit comments