Skip to content

Commit

Permalink
fixes ts issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Mar 1, 2024
1 parent 274e3f9 commit 781570b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/build/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions lib/ts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import crossFetch from "cross-fetch";
import { LoginMethod, User } from "./user";
import { SessionContainer } from "./recipe/session";

export const doFetch: typeof fetch = (...args) => {
export const doFetch: typeof fetch = (input: RequestInfo | URL, init?: RequestInit | undefined) => {
if (typeof fetch !== "undefined") {
return fetch(...args);
return fetch(input, init);
}
return crossFetch(...args);
return crossFetch(input, init);
};

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

0 comments on commit 781570b

Please sign in to comment.