UNPKG

@ablestack/rdo

Version:

A library to facilitate building and running graphs of Reactive Domain Objects - connecting JSON data sources to reactive client applications

41 lines (40 loc) 1.98 kB
/// <reference types="node" /> import { IEqualityComparer, IGlobalNodeOptions, INodeSyncOptions, IRdoInternalNodeWrapper, ISourceNodeWrapper, ISyncChildNode, NodeTypeInfo } from '../..'; import { EventEmitter } from '../../infrastructure/event-emitter'; import { MutableNodeCache } from '../../infrastructure/mutable-node-cache'; import { NodeChange } from '../../types/event-types'; import { RdoKeyCollectionNWBase } from '../base/rdo-key-based-collection-nw-base'; export declare class RdoMapNW<S, D> extends RdoKeyCollectionNWBase<S, D> { private _value; constructor({ value, typeInfo, key, mutableNodeCache, wrappedParentRdoNode, wrappedSourceNode, syncChildNode, defaultEqualityComparer, matchingNodeOptions, globalNodeOptions, targetedOptionMatchersArray, eventEmitter, }: { value: Map<string | number, D>; typeInfo: NodeTypeInfo; key: string | number | undefined; mutableNodeCache: MutableNodeCache; wrappedParentRdoNode: IRdoInternalNodeWrapper<S, D> | undefined; wrappedSourceNode: ISourceNodeWrapper<S, D>; defaultEqualityComparer: IEqualityComparer; syncChildNode: ISyncChildNode; matchingNodeOptions: INodeSyncOptions<any, any> | undefined; globalNodeOptions: IGlobalNodeOptions | undefined; targetedOptionMatchersArray: Array<INodeSyncOptions<any, any>>; eventEmitter: EventEmitter<NodeChange>; }); get isLeafNode(): boolean; get value(): Map<import("fs").OpenMode, D>; elements(): Iterable<D>; childElementCount(): number; protected onAdd: ({ key, newItem }: { key: string | number; newItem: any; }) => boolean; protected onReplace: ({ key, origItem, newItem }: { key: string | number; origItem: any; newItem: any; }) => boolean; protected onDelete: ({ key, origItem }: { key: string | number; origItem: any; }) => boolean; }