@allgemein/schema-api
Version:
Library for schema api
17 lines (16 loc) • 665 B
TypeScript
import { IPropertyRef } from './IPropertyRef';
import { IClassRef } from './IClassRef';
import { IBuildOptions } from './IBuildOptions';
import { IBaseRef } from './IBaseRef';
import { ISchemaRef } from './ISchemaRef';
export declare function isEntityRef(x: any): x is IEntityRef;
export interface IEntityRef extends IBaseRef {
getPropertyRef(name: string): IPropertyRef;
getPropertyRefs(): IPropertyRef[];
getSchemaRefs(): ISchemaRef | ISchemaRef[];
getClassRef(): IClassRef;
getClass(create?: boolean): Function;
create<T>(addinfo?: boolean): T;
build<T>(instance: any, options?: IBuildOptions): T;
isOf(instance: any): boolean;
}