Skip to content

Commit

Permalink
feat: add GoogleOAuth types
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Mar 24, 2024
1 parent 19ce5c0 commit 9515fd2
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/types/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { JsonValue } from "type-fest";
import type { GoogleOAuthClient } from "./googleOAuth";

declare global {
/**
Expand All @@ -17,4 +18,12 @@ declare global {
parse(text: number, reviver?: (this: any, key: string, value: unknown) => unknown): number;
parse(text: null, reviver?: (this: any, key: string, value: unknown) => unknown): null;
}

interface Window {
/**
* Google OAuth Client
* > The Google OAuth client library is loaded asynchronously via a script tag.
*/
google?: GoogleOAuthClient;
}
}
Loading

0 comments on commit 9515fd2

Please sign in to comment.