We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdbe3fe commit 3767e12Copy full SHA for 3767e12
src/LockBox.ts
@@ -3,7 +3,7 @@ import type { Lockable, ToString, LockRequest } from './types';
3
import { withF, withG } from '@matrixai/resources';
4
import { ErrorAsyncLocksLockBoxConflict } from './errors';
5
6
-class LockBox<L extends Lockable> implements Lockable {
+class LockBox<L extends Lockable = Lockable> implements Lockable {
7
protected _locks: Map<string, L> = new Map();
8
9
public lock(...requests: Array<LockRequest<L>>): ResourceAcquire<LockBox<L>> {
0 commit comments