devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertFunction<T>

    AssertFunction: T

    Assert that a type is a function.

    Type Parameters

    • T extends Function | CallableFunction

      Type that must be callable

    Accepts callable types including function declarations and arrow function types.

    type A = AssertFunction< () => void >;  // ✓
    type B = AssertFunction< {} >; // ✗ TS error