UNPKG

simple-graph-query

Version:

TypeScript evaluator for Forge expressions with browser-compatible UMD bundle

28 lines (27 loc) 547 B
export interface IAtom { id: string; type: string; label: string; } export interface ITuple { atoms: string[]; types: string[]; } export interface IType { id: string; types: string[]; atoms: IAtom[]; isBuiltin: boolean; } export interface IRelation { id: string; name: string; types: string[]; tuples: ITuple[]; } export interface IDataInstance { getAtomType(id: string): IType; getTypes(): readonly IType[]; getAtoms(): readonly IAtom[]; getRelations(): readonly IRelation[]; }