UNPKG

@deepstream/client

Version:
18 lines (17 loc) 610 B
import { RecordOfflineStore } from '../deepstream-client'; export type DirtyRecordsIndex = Map<string, boolean>; export declare class DirtyService { private storage; private readonly dirtyStorageName; private dirtyRecords; private loaded; private loadedCallback; private flushTimeout; constructor(storage: RecordOfflineStore, dirtyStorageName: string); isDirty(recordName: string): boolean; setDirty(recordName: string, isDirty: boolean): void; save(): void; whenLoaded(context: any, callback: () => void): void; getAll(): DirtyRecordsIndex; private load; }