Type helper to extract all properties of a class, excluding methods and functions.
Example demonstrating extracting properties of a class
class User { name = "Alice"; age = 25; greet() { console.log(`Hello, my name is ${this.name}`); }}// { name: string; age: number }type UserProps = ClassProperties<User>; Copy
class User { name = "Alice"; age = 25; greet() { console.log(`Hello, my name is ${this.name}`); }}// { name: string; age: number }type UserProps = ClassProperties<User>;
Type helper to extract all properties of a class, excluding methods and functions.