Skip to content

Commit 4311723

Browse files
committed
fix: update AnyFn type definition to use Array syntax
1 parent 377ce02 commit 4311723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncMonitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function lock(...requests: Array<MultiLockRequest>) {
5757
kind = 'set';
5858
}
5959

60-
type AnyFn = (...args: unknown[]) => unknown;
60+
type AnyFn = (...args: Array<unknown>) => unknown;
6161

6262
const f = descriptor[kind] as AnyFn;
6363
if (typeof f !== 'function') {

0 commit comments

Comments
 (0)