diff --git a/types/async-lock/async-lock-tests.ts b/types/async-lock/async-lock-tests.ts index 9e8920ca4b..2fa46b69f7 100644 --- a/types/async-lock/async-lock-tests.ts +++ b/types/async-lock/async-lock-tests.ts @@ -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 }); diff --git a/types/async-lock/index.d.ts b/types/async-lock/index.d.ts index 3c358c744c..c1ff7b4bc7 100644 --- a/types/async-lock/index.d.ts +++ b/types/async-lock/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Elisée MAURER // Alejandro // Anatoly +// 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 {