Constructor<T> Type

Constructor = (...args: any[]) => T

Generically represents a class T, for use in type annotations.

@note A variable of type Constructor<T> matches a class T only if T has a public constructor.

@see - asInstanceOf to attempt to cast an arbitrary value to class T.

  • isInstanceOf to determine if an arbitrary value is an instance of class T.

Defined in

Last Updated: 17 December, 2024