devtypes - v1.1.0
    Preparing search index...

    Type Alias StaticMethodNames<T>

    StaticMethodNames: { [K in keyof T]-?: T[K] extends Function ? K : never }[keyof T]

    Extract static methods from a constructor.

    Type Parameters

    • T extends Function

      A constructor function

    Returns a union of all static method names of the class. Useful for creating type-safe wrappers or proxies.

    class Utils { static create() {} static format() {} }
    type StaticMethods = StaticMethodNames< typeof Utils >; // "create" | "format"