UNPKG

emfular

Version:

Pure TS library with basic types and parser to move from XPath references to runtime models

11 lines (10 loc) 445 B
import { Referencable } from "./referenceable"; export declare abstract class ReferencableContainer<T extends Referencable> { readonly _parent: Referencable; readonly referenceName: string; readonly inverseName?: string; protected constructor(parent: Referencable, referenceName: string, inverseName?: string); abstract get(): T[] | T | undefined; abstract add(item: T): boolean; abstract remove(item: T): boolean; }