UNPKG

@themost/jspa

Version:
15 lines (14 loc) 480 B
import { PermissionAnnotation } from './Permission'; declare interface EntityAnnotation extends PermissionAnnotation { name?: string; version?: string; abstract?: boolean; } declare type EntityConstructor<T> = Function & { prototype: T; }; declare interface EntityTypeAnnotation { Entity?: EntityAnnotation; } declare function Entity(annotation?: EntityAnnotation): ClassDecorator; export { EntityConstructor, EntityAnnotation, EntityTypeAnnotation, Entity };