$ open source · GPL-3.0 — need a commercial license? imqueue.com →

IModelClass type

Names a model class by the instance type it produces.

Signature:

export type IModelClass<T extends BaseModel<T>> = new () => T;

References: BaseModel

Remarks

Used where a helper takes a model class rather than an instance. The constructor is declared without arguments because the type is there to identify a class, not to build anything with it — sequelize instantiates models itself.