@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Type Alias ClassConstructor<T>

    ClassConstructor: new (...args: any[]) => T

    The above generic definition of a class-based constructor function represents any constructable class; or in other words - it represents a T type-specific class constructor.

    To be used later as e.g. follows ...

    /** @type {ClassConstructor<User, [string, number]>} */ class User { constructor(name, age) { this.name = name; this.age = age; } }

    Type Parameters

    • T