Skip to content

Commit 781570b

Browse files
committed
fixes ts issue
1 parent 274e3f9 commit 781570b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/build/utils.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import crossFetch from "cross-fetch";
1010
import { LoginMethod, User } from "./user";
1111
import { SessionContainer } from "./recipe/session";
1212

13-
export const doFetch: typeof fetch = (...args) => {
13+
export const doFetch: typeof fetch = (input: RequestInfo | URL, init?: RequestInit | undefined) => {
1414
if (typeof fetch !== "undefined") {
15-
return fetch(...args);
15+
return fetch(input, init);
1616
}
17-
return crossFetch(...args);
17+
return crossFetch(input, init);
1818
};
1919

2020
export function getLargestVersionFromIntersection(v1: string[], v2: string[]): string | undefined {

0 commit comments

Comments
 (0)