UNPKG

@tucmc/hazel

Version:
19 lines (18 loc) 635 B
import type { DMap } from '../data/DMap'; import type { LiveDMap } from './LiveDMap'; import type { ReferableMapEntity } from './ReferableEntity'; export interface DataChanges { type: 'update' | 'delete' | 'create'; _docID?: string; from: Partial<any>; to: Partial<any>; } export interface ChangeList { isLive: boolean; changes: DataChanges[]; } export declare class DMapUtil { private static debug; static buildChanges(data: DMap<string, ReferableMapEntity<any>> | LiveDMap<string, ReferableMapEntity<any>> | ReferableMapEntity<any>[]): ChangeList; static loadChanges(fpath: string): ChangeList; }