GoogleAuth.signIn return Promise<GoogleUser>

by the google reference for this client api, https://developers.google.com/api-client-library/javascript/reference/referencedocs#googleauthsigninoptions, GoogleAuth.signIn should return Promise<GoogleUser>.
This commit is contained in:
John Cao
2017-11-27 02:21:54 -05:00
committed by GitHub
parent 617648bf88
commit 05d5f49c49
+1 -1
View File
@@ -27,7 +27,7 @@ declare namespace gapi.auth2 {
* Signs in the user using the specified options.
* If no option specified here, fallback to the options specified to gapi.auth2.init().
*/
signIn(options?: SigninOptions | SigninOptionsBuilder): any;
signIn(options?: SigninOptions | SigninOptionsBuilder): Promise<GoogleUser>;
/**
* Signs out all accounts from the application.