Type alias IsAnyFunction<T>

IsAnyFunction<T>: IfExtends<T, AnyFunction, true, false>

Type utility that checks if a given type T is an AnyFunction (any function type).

Type Parameters

  • T

    The type to check.

Returns

true if T is an AnyFunction, otherwise false. An AnyFunction is defined as a function type that accepts any arguments and returns any value.

Example

IsAnyFunction<() => void>; // true (matches AnyFunction)
IsAnyFunction<(x: number) => string>; // true (matches AnyFunction)
IsAnyFunction<string>; // false (string is not a function type)