devtypes - v1.1.0
    Preparing search index...

    Type Alias StaticPropertyNames<T>

    StaticPropertyNames: Exclude<
        { [K in keyof T]-?: T[K] extends Function ? never : K }[keyof T],
        "prototype",
    >

    Extract static properties from a constructor.

    Type Parameters

    • T extends Function

      A constructor function

    Produces a union of static property names of the constructor. Excludes methods and the built-in prototype key.

    class Config { static readonly version = "1.0"; static readonly debug = false; }
    type StaticProps = StaticPropertyNames< typeof Config >;
    // "version" | "debug"