mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #29830 from jonathaningram/fix-gapi-signin2-onfailure-arg
Add missing gapi.signin2.render onfailure arg
This commit is contained in:
@@ -55,8 +55,8 @@ function test_render() {
|
||||
const success = (googleUser: gapi.auth2.GoogleUser): void => {
|
||||
console.log(googleUser);
|
||||
};
|
||||
const failure = (): void => {
|
||||
console.log('Failure callback');
|
||||
const failure = (reason: { error: string }): void => {
|
||||
console.log(`Failure callback: ${reason.error}`);
|
||||
};
|
||||
|
||||
gapi.signin2.render('testId', {
|
||||
|
||||
Vendored
+1
-1
@@ -349,7 +349,7 @@ declare namespace gapi.signin2 {
|
||||
/**
|
||||
* The callback function to call when sign-in fails (default: none).
|
||||
*/
|
||||
onfailure?(): void;
|
||||
onfailure?(reason: { error: string }): void;
|
||||
|
||||
/**
|
||||
* The package name of the Android app to install over the air. See
|
||||
|
||||
Reference in New Issue
Block a user