Skip to content

Commit

Permalink
fix: a typescript regression related to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jun 7, 2024
1 parent 156aba7 commit a707b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isFunction.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit a707b70

Please sign in to comment.