From 5e8098e52f7846f110f286a5e04198e4052cef09 Mon Sep 17 00:00:00 2001 From: Maksymilian Chmiel Date: Sat, 11 Apr 2020 05:22:25 +0200 Subject: [PATCH] [@types/async-lock] Add missing skipQueue attr to the AsyncLockOptions (#43767) --- types/async-lock/async-lock-tests.ts | 1 + types/async-lock/index.d.ts | 2 ++ 2 files changed, 3 insertions(+) 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 {