UNPKG

@worldbrain/storex-sync

Version:

Offline-first syncing between multiple databases using Storex

11 lines (10 loc) 407 B
import { StorageRegistry } from "@worldbrain/storex"; import { ClientSyncLogEntry } from "../client-sync-log/types"; export declare type ReconcilerFunction = (logEntries: ClientSyncLogEntry[], options: { storageRegistry: StorageRegistry; }) => Promise<ExecutableOperation[]> | ExecutableOperation[]; export interface ExecutableOperation { operation: string; collection: string; args: any; }