-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathglobal.d.ts
More file actions
36 lines (32 loc) · 822 Bytes
/
global.d.ts
File metadata and controls
36 lines (32 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
interface GoogleCredentialResponse {
credential: string;
select_by?: string;
}
interface GoogleAccountsId {
initialize: (options: {
client_id: string;
callback: (response: GoogleCredentialResponse) => void;
ux_mode?: 'popup' | 'redirect';
}) => void;
renderButton: (
parent: HTMLElement,
options?: {
theme?: 'outline' | 'filled_blue' | 'filled_black';
size?: 'large' | 'medium' | 'small';
type?: 'standard' | 'icon';
shape?: 'rectangular' | 'pill' | 'circle' | 'square';
text?: 'signin_with' | 'signup_with' | 'continue_with' | 'signin';
width?: number;
locale?: string;
}
) => void;
}
interface GoogleAccounts {
id: GoogleAccountsId;
}
interface GoogleGlobal {
accounts: GoogleAccounts;
}
interface Window {
google?: GoogleGlobal;
}