mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
adding gapi.load(...)
This commit is contained in:
Vendored
+25
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user