adding gapi.load(...)

This commit is contained in:
Borys Niewiadomski
2016-02-29 13:27:57 -06:00
parent c0d876601e
commit 9521bd0249
+25
View File
@@ -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.