Type alias GenericConstructor<Arguments, Instance>

GenericConstructor<Arguments, Instance>: (new (..._arguments: Arguments) => Instance)

Type Parameters

Type declaration

    • new (..._arguments: Arguments): Instance
    • Generic constructor function.

      Example

      const example = (AClass: GenericConstructor) => new AClass("test");
      

      Parameters

      • Rest ..._arguments: Arguments

      Returns Instance