Type
@tsed/core
Usage
typescript
import { Type } from "@tsed/core";Overview
ts
interface Type<T = any> extends Function {
new (...args: any[]): T;
}
export const Type: FunctionConstructor;Description
Represents a class constructor new (...args) => T.
In Ts.ED, Type<T> is used to type class references (controllers, services, models, etc.) where a constructor is expected.
new
ts
new (...args: any[]): T;