diff --git a/src/AsyncMonitor.ts b/src/AsyncMonitor.ts index 486bc9f..dd01176 100644 --- a/src/AsyncMonitor.ts +++ b/src/AsyncMonitor.ts @@ -57,7 +57,7 @@ function lock(...requests: Array) { kind = 'set'; } - type AnyFn = (...args: unknown[]) => unknown; + type AnyFn = (...args: Array) => unknown; const f = descriptor[kind] as AnyFn; if (typeof f !== 'function') {