diff --git a/gapi/gapi.d.ts b/gapi/gapi.d.ts index cce0a2244d..0c5e93bcf5 100644 --- a/gapi/gapi.d.ts +++ b/gapi/gapi.d.ts @@ -26,6 +26,31 @@ interface GoogleApiOAuth2TokenObject { state: string; } +/** + * Fix for #8215 + * https://github.com/DefinitelyTyped/DefinitelyTyped/issues/8215 + * + * Usage example: + * https://developers.google.com/identity/sign-in/web/session-state + */ +declare module gapi { + + /** + * Pragmatically initialize gapi class member. + */ + export function load(object: string, fn: any) : any; + +} + +declare module gapi { + + /** + * Pragmatically initialize gapi class member. + */ + export function load(object: string, fn: any) : any; + +} + declare module gapi.auth { /** * Initiates the OAuth 2.0 authorization process. The browser displays a popup window prompting the user authenticate and authorize. After the user authorizes, the popup closes and the callback function fires.