Type alias AnyFunction

AnyFunction: ((...args) => unknown)

Type declaration

    • (...args): unknown
    • This is the standard correct definition for a function which is a proper subtype of all other functions: parameters of a function subtype must be wider than those of the base type, and return types must be narrower. Everything is wider than never[] and narrower than unknown, so any function is assignable to places this is used.

      Parameters

      • Rest ...args: never[]
        Rest

      Returns unknown

Generated using TypeDoc