A generic interface representing a constructor function type.

The Type interface is used to define a class-like type or a constructor signature for objects of type T. It allows the creation of new instances of T using the new keyword.

interface Type<T> {
    new Type(...args: any[]): T;
}

Type Parameters

  • T

    The type of the instance created by the constructor function.

Constructors

Constructors