devtypes - v2.0.0
    Preparing search index...

    Type Alias ClassProperties<T>

    ClassProperties: Omit<T, MethodNames<T>>

    Create an object with public property types extracted from a class.

    Type Parameters

    • T

      A class or object type

    Removes all method properties, leaving only fields. Useful for property mapping, validation, or state extraction.

    class User { id: number; name: string; email: string; }
    type UserProperties = ClassProperties< User >;
    // { id: number; name: string; email: string; }