interface MinilinksResult<L> {
    _updating: boolean;
    byFrom: {
        [id: Id]: Links<Id, L>;
    };
    byId: {
        [id: Id]: L;
    };
    byTo: {
        [id: Id]: Links<Id, L>;
    };
    byType: {
        [id: Id]: Links<Id, L>;
    };
    deep?: DeepClient<Link<Id>>;
    emitter: EventEmitter<DefaultEventMap>;
    links: Links<Id, L>;
    options: MinilinksGeneratorOptions;
    types: {
        [id: Id]: Links<Id, L>;
    };
    useMinilinksApply: (<L>(ml: any, name: string, data?: MinilinksApplyInput | Links<Id, L>) => {
        anomalies?: MinilinkError[];
        data: L[];
        errors?: MinilinkError[];
        plainLinks: L[];
    });
    useMinilinksFilter: (<L, R>(ml: any, filter: ((currentLink: L, oldLink: L, newLink: L) => boolean), results: ((l?: L, ml?: any, oldLink?: L, newLink?: L) => R), interval?: number) => R);
    useMinilinksHandle: (<L>(ml: any, handler: ((event: any, oldLink: any, newLink: any) => any)) => void);
    useMinilinksId: ((ml: any, start: QueryLink | DeepClientStartItem, ...path: DeepClientPathItem[]) => Id | void);
    useMinilinksQuery: (<L>(ml: any, query: Id | QueryLink, options?: MinilinksQueryOptions<MinilinksQueryOptionAggregate>) => any);
    useMinilinksSubscription: (<L>(ml: any, query: Id | QueryLink, options?: MinilinksQueryOptions<MinilinksQueryOptionAggregate>) => any);
    virtual: {
        [id: Id]: Id;
    };
    virtualCounter: number;
    _traveled(a: any[]): Links<Id, L>;
    add(linksArray: any[], applyName?: string): {
        anomalies?: MinilinkError[];
        errors?: MinilinkError[];
    };
    apply(linksArray: any[] | MinilinksApplyInput, applyName?: string, applyOptions?: ApplyOptions): {
        anomalies?: MinilinkError[];
        data: L[];
        errors?: MinilinkError[];
        plainLinks: L[];
    };
    id(start: DeepClientStartItem, ...path: DeepClientPathItem[]): Id;
    name(input: Id | Link<Id>): string;
    query(query: Id | QueryLink): any;
    remove(idsArray: any[], applyName?: string): {
        anomalies?: MinilinkError[];
        errors?: MinilinkError[];
    };
    select(query: Id | QueryLink, options?: MinilinksQueryOptions<MinilinksQueryOptionAggregate>): any;
    subscribe(query: Id | QueryLink, options?: MinilinksQueryOptions<MinilinksQueryOptionAggregate>): Observable<any>;
    symbol(input: Id | Link<Id>): string;
    update(linksArray: any[], applyName?: string): {
        anomalies?: MinilinkError[];
        errors?: MinilinkError[];
    };
}

Type Parameters

Properties

_updating: boolean
byFrom: {
    [id: Id]: Links<Id, L>;
}
byId: {
    [id: Id]: L;
}
byTo: {
    [id: Id]: Links<Id, L>;
}
byType: {
    [id: Id]: Links<Id, L>;
}
deep?: DeepClient<Link<Id>>
emitter: EventEmitter<DefaultEventMap>
links: Links<Id, L>
types: {
    [id: Id]: Links<Id, L>;
}
useMinilinksApply: (<L>(ml: any, name: string, data?: MinilinksApplyInput | Links<Id, L>) => {
    anomalies?: MinilinkError[];
    data: L[];
    errors?: MinilinkError[];
    plainLinks: L[];
})
useMinilinksFilter: (<L, R>(ml: any, filter: ((currentLink: L, oldLink: L, newLink: L) => boolean), results: ((l?: L, ml?: any, oldLink?: L, newLink?: L) => R), interval?: number) => R)
useMinilinksHandle: (<L>(ml: any, handler: ((event: any, oldLink: any, newLink: any) => any)) => void)
useMinilinksId: ((ml: any, start: QueryLink | DeepClientStartItem, ...path: DeepClientPathItem[]) => Id | void)
useMinilinksQuery: (<L>(ml: any, query: Id | QueryLink, options?: MinilinksQueryOptions<MinilinksQueryOptionAggregate>) => any)

Type declaration

useMinilinksSubscription: (<L>(ml: any, query: Id | QueryLink, options?: MinilinksQueryOptions<MinilinksQueryOptionAggregate>) => any)

Type declaration

virtual: {
    [id: Id]: Id;
}
virtualCounter: number

Methods