From 05d5f49c49d67679259ecb5adbcc2f567bb281f4 Mon Sep 17 00:00:00 2001 From: John Cao Date: Mon, 27 Nov 2017 02:21:54 -0500 Subject: [PATCH] GoogleAuth.signIn return Promise by the google reference for this client api, https://developers.google.com/api-client-library/javascript/reference/referencedocs#googleauthsigninoptions, GoogleAuth.signIn should return Promise. --- types/gapi.auth2/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index 4cdef77a80..7dbdb222c3 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -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; /** * Signs out all accounts from the application.