@types/gapi
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -130,23 +130,3 @@ // Type definitions for Google API Client | ||
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. | ||
* @param version The version of the API to load | ||
* @param callback the function that is called once the API interface is loaded | ||
* @param url optional, the url of your app - if using Google's APIs, don't set it | ||
*/ | ||
export function load(name: string, version: string, callback: () => any, url?: string): void; | ||
/** | ||
* Creates a HTTP request for making RESTful requests. | ||
* An object encapsulating the various arguments for this method. | ||
*/ | ||
export function request(args: { | ||
interface RequestOptions { | ||
/** | ||
@@ -176,4 +156,26 @@ * The URL to handle the request | ||
callback?: () => any; | ||
}): HttpRequest<any>; | ||
} | ||
/** | ||
* 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. | ||
* @param version The version of the API to load | ||
* @param callback the function that is called once the API interface is loaded | ||
* @param url optional, the url of your app - if using Google's APIs, don't set it | ||
*/ | ||
export function load(name: string, version: string, callback: () => any, url?: string): void; | ||
/** | ||
* Creates a HTTP request for making RESTful requests. | ||
* An object encapsulating the various arguments for this method. | ||
*/ | ||
export function request(args: RequestOptions): HttpRequest<any>; | ||
/** | ||
* Creates an RPC Request directly. The method name and version identify the method to be executed and the RPC params are provided upon RPC creation. | ||
@@ -180,0 +182,0 @@ * @param method The method to be executed. |
{ | ||
"name": "@types/gapi", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "TypeScript definitions for Google API Client", | ||
@@ -14,4 +14,5 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "bc74517bb45b2e2ca0d6da06a4ae6885aeeab38297821d0af2d1273374e3e8a4" | ||
"typesPublisherContentHash": "cff1d054c1aaef57773b1be1663ab0a79cad95b94c8f1d2a25de29bc46495d65" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* Last updated: Tue, 22 Nov 2016 23:38:10 GMT | ||
* File structure: Global | ||
@@ -14,0 +14,0 @@ * Library Dependencies: none |
@@ -6,4 +6,4 @@ { | ||
"moduleDependencies": [], | ||
"libraryMajorVersion": "0", | ||
"libraryMinorVersion": "0", | ||
"libraryMajorVersion": 0, | ||
"libraryMinorVersion": 0, | ||
"libraryName": "Google API Client", | ||
@@ -23,3 +23,3 @@ "typingsPackageName": "gapi", | ||
"hasPackageJson": false, | ||
"contentHash": "bc74517bb45b2e2ca0d6da06a4ae6885aeeab38297821d0af2d1273374e3e8a4" | ||
"contentHash": "cff1d054c1aaef57773b1be1663ab0a79cad95b94c8f1d2a25de29bc46495d65" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13795
304
0