devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertFunctionObject<T>

    AssertFunctionObject: T

    Assert that a type is an object whose values are functions.

    Type Parameters

    • T extends { [key: string]: Function | CallableFunction }

      Object type with function-valued properties

    Useful for validating method maps or API surfaces consisting exclusively of callable properties.

    type A = AssertFunctionObject< { a(): void; b(): number } >;  // ✓
    type B = AssertFunctionObject< { a: number } >; // ✗ TS error