@types/gapi.client
Advanced tools
Comparing version 1.0.1 to 1.0.2
// Type definitions for non-npm package Google API client 1.0 | ||
// Project: https://developers.google.com | ||
// Definitions by: Bolisov Alexey <https://github.com/Bolisov> | ||
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -21,3 +21,3 @@ // TypeScript Version: 2.3 | ||
function load(name: string, version: string, callback: () => any): void; | ||
function load(name: string, version: string): PromiseLike<void>; | ||
function load(name: string, version: string): Promise<void>; | ||
@@ -53,2 +53,3 @@ /** | ||
// callback?: () => any; | ||
// tslint:disable-next-line:no-unnecessary-generics | ||
}): Request<T>; | ||
@@ -85,3 +86,3 @@ | ||
*/ | ||
interface Request<T> extends PromiseLike<Response<T>> { | ||
interface Request<T> extends Promise<Response<T>> { | ||
/** | ||
@@ -106,3 +107,3 @@ * Executes the request and runs the supplied callback on response. | ||
*/ | ||
interface Batch<T> extends PromiseLike<Response<ResponseMap<T>>> { | ||
interface Batch<T> extends Promise<Response<ResponseMap<T>>> { | ||
/** | ||
@@ -148,2 +149,3 @@ * Adds a gapi.client.Request to the batch. | ||
*/ | ||
// tslint:disable-next-line:no-unnecessary-generics | ||
function newBatch<T>(): Batch<T>; | ||
@@ -150,0 +152,0 @@ } |
{ | ||
"name": "@types/gapi.client", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for non-npm package Google API client", | ||
"version": "1.0.2", | ||
"description": "TypeScript definitions for Google API client", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Bolisov Alexey", | ||
"url": "https://github.com/Bolisov", | ||
"githubUsername": "Bolisov" | ||
"name": "Maxim Mazurok", | ||
"url": "https://github.com/Maxim-Mazurok", | ||
"githubUsername": "Maxim-Mazurok" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/gapi.client" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "2e5fcf7e189f2789091236c0c7b085b48c1929cf18f20e2c9206de4f98626210", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "9f70073af2770f8cd180d51390c9c3050851a1429396d4c54c78bb644b27f88e", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for non-npm package Google API client ( https://developers.google.com ). | ||
This package contains type definitions for Google API client (https://developers.google.com). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gapi.client | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gapi.client. | ||
Additional Details | ||
* Last updated: Thu, 14 Feb 2019 16:51:53 GMT | ||
### Additional Details | ||
* Last updated: Tue, 07 Apr 2020 15:37:13 GMT | ||
* Dependencies: none | ||
* Global values: gapi | ||
* Global values: `gapi` | ||
# Credits | ||
These definitions were written by Bolisov Alexey <https://github.com/Bolisov>. | ||
These definitions were written by [Maxim Mazurok](https://github.com/Maxim-Mazurok). |
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
10875
200