Type alias FunctionFields<T>

FunctionFields<T>: {
    [K in keyof T]: T[K] extends Function
        ? K
        : never
}[keyof T]

Identifies all properties of a given entity type T that are functions. This type is useful for filtering out or working with only the function fields of an entity.

Type Parameters

  • T

    The type of the entity being examined.

Returns

The names of the function properties as strings if any exist; otherwise, the result is never.

Generated using TypeDoc