mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 08:26:35 +08:00
Add overloaded method.
This commit is contained in:
8
gapi/gapi.d.ts
vendored
8
gapi/gapi.d.ts
vendored
@@ -127,6 +127,14 @@ declare namespace gapi.auth {
|
||||
}
|
||||
|
||||
declare namespace gapi.client {
|
||||
/**
|
||||
* Loads the client library interface to a particular API. If a callback is not provided, a promise is returned.
|
||||
* @param name The name of the API to load.
|
||||
* @param version The version of the API to load.
|
||||
* @return promise The promise that get's resolved after the request is finished.
|
||||
*/
|
||||
export function load(name: string, version: string): Promise<void>
|
||||
|
||||
/**
|
||||
* Loads the client library interface to a particular API. The new API interface will be in the form gapi.client.api.collection.method.
|
||||
* @param name The name of the API to load.
|
||||
|
||||
Reference in New Issue
Block a user