@themost/jspa
Version:
MOST Web Framework Persistence API
15 lines (14 loc) • 480 B
TypeScript
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 };