From dd09ab28f3cc99884e9376012abfa2be8e0736f5 Mon Sep 17 00:00:00 2001 From: Franklin Yu Date: Tue, 4 Jul 2017 18:14:11 -0400 Subject: [PATCH] [gapi.auth2] mark a parameter as optional According to the [documentation][], this parameter is optional. [documentation]: https://developers.google.com/identity/sign-in/web/reference#googleauthgrantofflineaccessoptions --- 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 04dfe32c2d..6e9e5c4199 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -47,7 +47,7 @@ declare namespace gapi.auth2 { /** * Get permission from the user to access the specified scopes offline. */ - grantOfflineAccess(options: { + grantOfflineAccess(options?: { scope?: string; prompt?: "select_account" | "consent"; app_package_name?: string;