Logos DX
    Preparing search index...

    Type Alias FunctionProps<T>

    FunctionProps: { [K in keyof T]: T[K] extends Func | ClassType ? K : never }[keyof T]

    Extracts only function properties from an object type.

    Useful for creating proxies, method decorators, or when separating behavior from data in object-oriented designs.

    Type Parameters

    • T
    interface User { id: string; name: string; save(): void; delete(): void; }
    type UserMethods = Pick<User, FunctionProps<User>>; // { save(): void; delete(): void; }