Skip to content

Commit 377ce02

Browse files
authored
Merge pull request #8 from MatrixAI/feature-fix-linting-errors
fix linting errors
2 parents 3e4734d + 3b6696c commit 377ce02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AsyncMonitor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ function lock(...requests: Array<MultiLockRequest>) {
5656
} else if (descriptor.set != null) {
5757
kind = 'set';
5858
}
59-
const f: Function = descriptor[kind]; // eslint-disable-line @typescript-eslint/ban-types
59+
60+
type AnyFn = (...args: unknown[]) => unknown;
61+
62+
const f = descriptor[kind] as AnyFn;
6063
if (typeof f !== 'function') {
6164
throw new TypeError(`${key} is not a function`);
6265
}

0 commit comments

Comments
 (0)