Create an object with property types extracted from a class.
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; } Copy
class User { id: number; name: string; email: string; }type UserProperties = PropertyTypes< User >;// { id: number; name: string; email: string; }
Create an object with property types extracted from a class.