From 89990ad9e28120e2a4c2230806fe6d29e84fccdb Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Tue, 13 May 2014 14:40:22 +1000 Subject: [PATCH] Making gapi.auth.authorize accept string|array Per the docs[1] gapi.auth.authorize accepts a lone string, as well as an array of strings. From my limited testing the any type appears to accept both string and array of string. 1: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauthauthorize --- gapi/gapi.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapi/gapi.d.ts b/gapi/gapi.d.ts index 6da4200aa0..2202e1ec99 100644 --- a/gapi/gapi.d.ts +++ b/gapi/gapi.d.ts @@ -48,7 +48,7 @@ declare module gapi.auth { /** * The auth scope or scopes to authorize. Auth scopes for individual APIs can be found in their documentation. */ - scope?: any[] + scope?: any }, callback: (token: GoogleApiOAuth2TokenObject) => any): void; /** * Initializes the authorization feature. Call this when the client loads to prevent popup blockers from blocking the auth window on gapi.auth.authorize calls.