mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-26 20:50:30 +00:00
13 lines
586 B
TypeScript
13 lines
586 B
TypeScript
|
import { NormalizedCache, NormalizedCacheObject, StoreObject } from './types';
|
||
|
export declare class MapCache implements NormalizedCache {
|
||
|
private cache;
|
||
|
constructor(data?: NormalizedCacheObject);
|
||
|
get(dataId: string): StoreObject;
|
||
|
set(dataId: string, value: StoreObject): void;
|
||
|
delete(dataId: string): void;
|
||
|
clear(): void;
|
||
|
toObject(): NormalizedCacheObject;
|
||
|
replace(newData: NormalizedCacheObject): void;
|
||
|
}
|
||
|
export declare function mapNormalizedCacheFactory(seed?: NormalizedCacheObject): NormalizedCache;
|
||
|
//# sourceMappingURL=mapCache.d.ts.map
|