Merge pull request #29830 from jonathaningram/fix-gapi-signin2-onfailure-arg

Add missing gapi.signin2.render onfailure arg
This commit is contained in:
Ron Buckton
2018-10-27 16:04:39 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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', {
+1 -1
View File
@@ -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