dyna-record
    Preparing search index...

    Type Alias FunctionFields<T>

    FunctionFields: {
        [K in keyof T]: T[K] extends (...args: never[]) => unknown ? 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.

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