mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[@types/async-lock] Add missing skipQueue attr to the AsyncLockOptions (#43767)
This commit is contained in:
@@ -27,3 +27,4 @@ lock.isBusy('key');
|
||||
const lock2 = new AsyncLock({ timeout : 5000 });
|
||||
const lock3 = new AsyncLock({ maxPending : 5000 });
|
||||
const lock4 = new AsyncLock({ Promise: null });
|
||||
const lock5 = new AsyncLock({ skipQueue: true });
|
||||
|
||||
Vendored
+2
@@ -3,6 +3,7 @@
|
||||
// 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
|
||||
|
||||
@@ -13,6 +14,7 @@ interface AsyncLockOptions {
|
||||
maxPending?: number;
|
||||
domainReentrant?: boolean;
|
||||
Promise?: any;
|
||||
skipQueue?: boolean;
|
||||
}
|
||||
|
||||
declare class AsyncLock {
|
||||
|
||||
Reference in New Issue
Block a user