@types/async-lock
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -13,7 +13,7 @@ // Type definitions for async-lock 1.1 | ||
interface AsyncLockOptions { | ||
timeout?: number; | ||
maxPending?: number; | ||
domainReentrant?: boolean; | ||
timeout?: number | undefined; | ||
maxPending?: number | undefined; | ||
domainReentrant?: boolean | undefined; | ||
Promise?: any; | ||
skipQueue?: boolean; | ||
skipQueue?: boolean | undefined; | ||
} | ||
@@ -20,0 +20,0 @@ |
{ | ||
"name": "@types/async-lock", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "TypeScript definitions for async-lock", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock", | ||
"license": "MIT", | ||
@@ -37,4 +38,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a10ede871c5b6eaccdac9edada563ee3d98a1272b7bb832b5be291d223009d8f", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "26500d942714115de222520dc617585e55e6714f9074b834f8eace98397254bf", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,45 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock/index.d.ts) | ||
````ts | ||
// Type definitions for async-lock 1.1 | ||
// Project: https://github.com/rain1017/async-lock, https://github.com/rogierschouten/async-lock | ||
// Definitions by: Elisée MAURER <https://github.com/elisee> | ||
// Alejandro <https://github.com/afharo> | ||
// Anatoly <https://github.com/rhymmor> | ||
// Humulus <https://github.com/humulus> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
type AsyncLockDoneCallback<T> = (err?: Error, ret?: T) => void; | ||
interface AsyncLockOptions { | ||
timeout?: number | undefined; | ||
maxPending?: number | undefined; | ||
domainReentrant?: boolean | undefined; | ||
Promise?: any; | ||
skipQueue?: boolean | undefined; | ||
} | ||
declare class AsyncLock { | ||
constructor(options?: AsyncLockOptions); | ||
acquire<T>(key: string | string[], | ||
fn: (() => T | PromiseLike<T>) | ((done: AsyncLockDoneCallback<T>) => any), | ||
opts?: AsyncLockOptions): Promise<T>; | ||
acquire<T>(key: string | string[], | ||
fn: (done: AsyncLockDoneCallback<T>) => any, | ||
cb: AsyncLockDoneCallback<T>, | ||
opts?: AsyncLockOptions): void; | ||
isBusy(key?: string): boolean; | ||
} | ||
declare namespace AsyncLock { } | ||
export = AsyncLock; | ||
```` | ||
### Additional Details | ||
* Last updated: Sat, 11 Apr 2020 03:25:32 GMT | ||
* Last updated: Tue, 06 Jul 2021 18:05:36 GMT | ||
* Dependencies: none | ||
@@ -14,0 +54,0 @@ * Global values: none |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5643
0
57