Helper type that represents constructor creating given objects. Can be used as a type constraint.
// The function accepts any class constructor. functionMyFunction<CtorextendsConstructor>( ctor: Ctor ) { // ... }
// The function accepts any class constructor of type derived from `MyBase`. functionMyFunction<CtorextendsConstructor<MyBase>>( ctor: Ctor ) { // ... }
Helper type that represents constructor creating given objects. Can be used as a type constraint.