Merge pull request #8403 from borysn/master

adding gapi.load(...)
This commit is contained in:
Masahiro Wakame
2016-03-10 22:31:00 +09:00
+16
View File
@@ -26,6 +26,22 @@ 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.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.