@datorama/akita
Version:
State Management Tailored-Made for JS Applications
17 lines (16 loc) • 489 B
TypeScript
export declare class SnapshotManager {
/**
* Get a snapshot of the whole state or a specific stores
* Use it ONLY for things like saving the state in the server
*/
getStoresSnapshot(stores?: string[]): {};
/**
* Set snapshot we get from the server
*/
setStoresSnapshot(stores: {
[storeName: string]: any;
} | string, options?: {
skipStorageUpdate: boolean;
}): void;
}
export declare const snapshotManager: SnapshotManager;