@types/google-one-tap
Advanced tools
@@ -1,2 +0,2 @@ | ||
| // Type definitions for google-one-tap 1.1 | ||
| // Type definitions for google-one-tap 1.2 | ||
| // Project: https://developers.google.com/identity/one-tap/web | ||
@@ -18,3 +18,3 @@ // Definitions by: voidpumpkin <https://github.com/voidpumpkin> | ||
| cancel: () => void; | ||
| onGoogleLibraryLoad: () => void; | ||
| revoke: (hint: string, callback?: (response: RevocationResponse) => void) => void; | ||
| prompt: (momentListener?: (promptMomentNotification: PromptMomentNotification) => void) => void; | ||
@@ -29,3 +29,3 @@ renderButton: (parent: HTMLElement, options: GsiButtonConfiguration, clickHandler?: () => void) => void; | ||
| size?: 'large' | 'medium' | 'small'; | ||
| text?: 'signin_with' | 'signup_with' | 'continue_with' | 'signup_with'; | ||
| text?: 'signin_with' | 'signup_with' | 'continue_with' | 'signin'; | ||
| shape?: 'rectangular' | 'pill' | 'circle' | 'square'; | ||
@@ -35,8 +35,15 @@ logo_alignment?: 'left' | 'center'; | ||
| locale?: string; | ||
| } | ||
| } | ||
| export interface CredentialResponse { | ||
| credential: string; | ||
| select_by: string; | ||
| client_id: string; | ||
| select_by: | ||
| | 'auto' | ||
| | 'user' | ||
| | 'user_1tap' | ||
| | 'user_2tap' | ||
| | 'btn' | ||
| | 'btn_confirm' | ||
| | 'btn_add_session' | ||
| | 'btn_confirm_add_session'; | ||
| } | ||
@@ -46,15 +53,15 @@ | ||
| export interface IdConfiguration { | ||
| client_id?: string | undefined; | ||
| auto_select?: boolean | undefined; | ||
| callback?: ((credentialResponse: CredentialResponse) => void) | undefined; | ||
| client_id: string; | ||
| auto_select?: boolean; | ||
| callback?: ((credentialResponse: CredentialResponse) => void); | ||
| login_uri?: string; | ||
| native_callback?: (() => void) | undefined; | ||
| cancel_on_tap_outside?: boolean | undefined; | ||
| prompt_parent_id?: string | undefined; | ||
| nonce?: string | undefined; | ||
| context?: string | undefined; | ||
| state_cookie_domain?: string | undefined; | ||
| native_callback?: (() => void); | ||
| cancel_on_tap_outside?: boolean; | ||
| prompt_parent_id?: string; | ||
| nonce?: string; | ||
| context?: 'signin' | 'signup' | 'use'; | ||
| state_cookie_domain?: string; | ||
| ux_mode?: 'popup' | 'redirect'; | ||
| allowed_parent_origin?: string | string[] | undefined; | ||
| intermediate_iframe_close_callback?: (() => void) | undefined; | ||
| allowed_parent_origin?: string | string[]; | ||
| intermediate_iframe_close_callback?: (() => void); | ||
| } | ||
@@ -81,1 +88,6 @@ | ||
| } | ||
| export interface RevocationResponse { | ||
| successful: boolean; | ||
| error?: string; | ||
| } |
| { | ||
| "name": "@types/google-one-tap", | ||
| "version": "1.1.0", | ||
| "version": "1.2.0", | ||
| "description": "TypeScript definitions for google-one-tap", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-one-tap", | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "8870615a08f5ff7411c0260319766760d2c03e73910f1b9efa8b2ee126829270", | ||
| "typeScriptVersion": "3.7" | ||
| "typesPublisherContentHash": "c13a0cad5089a71922ecc2f20239d94b4873dcc1d1a33117a104fb93a37cb5d8", | ||
| "typeScriptVersion": "3.9" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Tue, 28 Sep 2021 07:01:22 GMT | ||
| * Last updated: Fri, 13 May 2022 15:31:45 GMT | ||
| * Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `google` |
5940
2.93%80
15.94%