Skip to content

Commit 4330aa1

Browse files
authored
🤖 Merge PR DefinitelyTyped#74143 [google-one-tap] Add state and click_listener to GsiButtonConfiguration by @thepocp
1 parent eb37e93 commit 4330aa1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎types/google-one-tap/index.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export interface GsiButtonConfiguration {
2323
logo_alignment?: "left" | "center";
2424
width?: number;
2525
locale?: string;
26+
click_listener?: () => void;
27+
state?: string;
2628
}
2729

2830
export interface CredentialResponse {

‎types/google-one-tap/test/google-one-tap-global.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ const buttonOptions: google.GsiButtonConfiguration = {
5959
theme: "outline",
6060
size: "large",
6161
text: "continue_with",
62+
click_listener: () => {},
63+
state: "test_state",
6264
};
6365

6466
const button: HTMLElement = new HTMLDivElement();

0 commit comments

Comments
 (0)