[gapi.auth2] Fix arg type in onFailure callback

This commit is contained in:
Xavier Campenon
2018-02-13 16:19:10 +01:00
committed by GitHub
parent 21fda8cd9c
commit 16732af74d

View File

@@ -21,7 +21,7 @@ declare namespace gapi.auth2 {
* Calls the onInit function when the GoogleAuth object is fully initialized, or calls the onFailure function if
* initialization fails.
*/
then(onInit: (googleAuth: GoogleAuth) => any, onFailure?: (reason: string) => any): any;
then(onInit: (googleAuth: GoogleAuth) => any, onFailure?: (reason: {error: string, details: string}) => any): any;
/**
* Signs in the user using the specified options.