@types/async-lock
Advanced tools
Comparing version 0.0.20 to 0.0.21
// Type definitions for async-lock | ||
// Project: https://github.com/rain1017/async-lock | ||
// Definitions by: Elisée MAURER <https://github.com/elisee> | ||
// Definitions by: Elisée MAURER <https://github.com/elisee>, Alejandro <https://github.com/afharo> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
interface AsyncLockDoneCallback { | ||
(err?: Error, ret?: any): void; | ||
interface AsyncLockDoneCallback<T> { | ||
(err?: Error, ret?: T): void; | ||
} | ||
@@ -21,4 +22,9 @@ | ||
acquire(key: string | string[], fn: (done: AsyncLockDoneCallback) => any, cb: AsyncLockDoneCallback, opts?: AsyncLockOptions): void; | ||
acquire(key: string | string[], fn: (done: AsyncLockDoneCallback) => any, opts?: AsyncLockOptions): PromiseLike<any>; | ||
acquire<T>(key: string | string[], | ||
fn: (() => T | PromiseLike<T>) | ((done: AsyncLockDoneCallback<T>) => any), | ||
opts?: AsyncLockOptions): PromiseLike<T>; | ||
acquire<T>(key: string | string[], | ||
fn: (done: AsyncLockDoneCallback<T>) => any, | ||
cb: AsyncLockDoneCallback<T>, | ||
opts?: AsyncLockOptions): void; | ||
@@ -25,0 +31,0 @@ isBusy(): boolean; |
{ | ||
"name": "@types/async-lock", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "TypeScript definitions for async-lock", | ||
@@ -9,3 +9,9 @@ "license": "MIT", | ||
"name": "Elisée MAURER", | ||
"url": "https://github.com/elisee" | ||
"url": "https://github.com/elisee", | ||
"githubUsername": "elisee" | ||
}, | ||
{ | ||
"name": "Alejandro", | ||
"url": "https://github.com/afharo", | ||
"githubUsername": "afharo" | ||
} | ||
@@ -20,4 +26,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "ccdcc3d89c21aadedc45b0574706cf4e037233442327c440abbc072142bf413b", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "477871a50763ffe2a41f9e2f4c0476fbc2a6303a7fb3cd8ed64c31f5a205be9e", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:47:08 GMT | ||
* Last updated: Mon, 29 Jan 2018 21:16:13 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Elisée MAURER <https://github.com/elisee>. | ||
These definitions were written by Elisée MAURER <https://github.com/elisee>, Alejandro <https://github.com/afharo>. |
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
3492
27