Logos DX
    Preparing search index...

    Type Alias NonFunctionProps<T>

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

    Extracts only non-function properties from an object type.

    Essential for serialization, data persistence, and state management where only data properties should be included, not methods.

    Type Parameters

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