Documentation
    Preparing search index...

    Type Alias ComponentType<T>

    Component class identity (plan D2). Components are classes carrying a static readonly typeName; the registry is keyed by that name.

    The never constructor parameters make the type accept any component class without inviting the registry to construct one — the registry only ever reads typeName.

    type ComponentType<T extends Component> = {
        typeName: string;
        new (...args: never[]): T;
    }

    Type Parameters

    • Parameters

      • ...args: never[]

      Returns T

    Index
    typeName: string