From 4311723b41256cc8a5fa4e77cf591826ceac284c Mon Sep 17 00:00:00 2001 From: CDeltakai Date: Fri, 16 May 2025 15:07:41 +1000 Subject: [PATCH] fix: update AnyFn type definition to use Array syntax --- src/AsyncMonitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {