devtypes - v1.1.0
    Preparing search index...

    Type Alias PropertyTypes<T>

    PropertyTypes: Omit<T, MethodNames<T>>

    Create an object with 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 = PropertyTypes< User >;
    // { id: number; name: string; email: string; }