UNPKG

@worldbrain/storex-sync

Version:

Offline-first syncing between multiple databases using Storex

24 lines (23 loc) 766 B
import { StorageMiddleware } from '@worldbrain/storex/lib/types/middleware'; import { ClientSyncLogStorage } from "../client-sync-log"; import StorageManager from '@worldbrain/storex'; export declare class SyncLoggingMiddleware implements StorageMiddleware { private clientSyncLog; private storageManager; private operationProcessors; private includeCollections; constructor(options: { clientSyncLog: ClientSyncLogStorage; storageManager: StorageManager; includeCollections: string[]; }); process({ next, operation }: { next: { process: ({ operation }: { operation: any; }) => any; }; operation: any[]; }): Promise<any>; _getNow(): number; }