From a707b703859a3260ec438e57a4cac437614b1487 Mon Sep 17 00:00:00 2001 From: mesqueeb Date: Fri, 7 Jun 2024 13:54:22 +0900 Subject: [PATCH] fix: a typescript regression related to `unknown` --- src/isFunction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isFunction.ts b/src/isFunction.ts index bc76ab2..affd4d4 100644 --- a/src/isFunction.ts +++ b/src/isFunction.ts @@ -1,4 +1,4 @@ -export type AnyFunction = (...args: unknown[]) => unknown +export type AnyFunction = (...args: any[]) => any /** Returns whether the payload is a function (regular or async) */ export function isFunction(payload: unknown): payload is AnyFunction {