AnyFunction
Type Aliases
AnyFunction
Ƭ AnyFunction: (...args
: readonly unknown
[]) => unknown
Helper type to represent any function. This is safer than using the built-in Function
type, as
it does not completely turn off all type safety.
Type declaration
▸ (...args
): unknown
Parameters
Name | Type |
---|---|
...args | readonly unknown [] |
Returns
unknown