Extract static properties from a constructor as an object.
A constructor function
Produces an object type containing all static properties of the class. Useful for reflecting or copying static values.
class Settings { static appName = "MyApp"; static maxUsers = 100; }type StaticPropsObj = StaticPropertiesObject< typeof Settings >;// { appName: string; maxUsers: number; } Copy
class Settings { static appName = "MyApp"; static maxUsers = 100; }type StaticPropsObj = StaticPropertiesObject< typeof Settings >;// { appName: string; maxUsers: number; }
Extract static properties from a constructor as an object.