devtypes - v1.1.0
    Preparing search index...

    Type Alias StaticProperties<T>

    StaticProperties: Pick<T, StaticPropertyNames<T>>

    Extract static properties from a constructor as an object.

    Type Parameters

    • T extends Function

      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; }