Extract public 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 = StaticProperties< typeof Settings >;// { appName: string; maxUsers: number; } Copy
class Settings { static appName = 'MyApp'; static maxUsers = 100; }type StaticPropsObj = StaticProperties< typeof Settings >;// { appName: string; maxUsers: number; }
Extract public static properties from a constructor as an object.