Type alias Constructable<T>

Constructable<T>: (new (...args) => T)

Type Parameters

  • T

Type declaration

    • new (...args): T
    • Generic type for class definitions. Example usage:

      function createSomeInstance(myClassDefinition: Constructable<MyClass>) {
      return new myClassDefinition()
      }

      Parameters

      • Rest ...args: any[]

      Returns T

Generated using TypeDoc