UNPKG

620 BTypeScriptView Raw
1import { NormalizedCache, NormalizedCacheObject, StoreObject } from './types';
2export declare class ObjectCache implements NormalizedCache {
3 protected data: NormalizedCacheObject;
4 constructor(data?: NormalizedCacheObject);
5 toObject(): NormalizedCacheObject;
6 get(dataId: string): StoreObject;
7 set(dataId: string, value: StoreObject): void;
8 delete(dataId: string): void;
9 clear(): void;
10 replace(newData: NormalizedCacheObject): void;
11}
12export declare function defaultNormalizedCacheFactory(seed?: NormalizedCacheObject): NormalizedCache;
13//# sourceMappingURL=objectCache.d.ts.map
\No newline at end of file