Type alias Function<Arguments, Output>

Function<Arguments, Output>: ((...input) => Output)

Type Parameters

Type declaration

    • (...input): Output
    • Generic function type (safer than using any).

      Remarks

      This type is a generic function type, for callbacks and other places where any type of function can be received.

      Example

      const example = (callback: Function) => callback("test");
      

      See

      ReadOnlyArray

      Parameters

      • Rest ...input: Arguments

      Returns Output

      Output of the function.