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;
}
}
The above generic definition of a class-based constructor function represents any constructable class; or in other words - it represents a
Ttype-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; } }