Type Alias EntityClass<T>

EntityClass: new () => T & typeof default

Represents the constructor type of a class decorated with the @Entity decorator.

The @Entity decorator enforces at compile time that each entity declares readonly type as a string literal matching the class name. If the declaration is missing, the decorator produces a type error. See Entity for details.

Type Parameters

  • T