MessagesForMacintosh/JS/node_modules/apollo-cache-inmemory/lib/objectCache.d.ts

13 lines
620 B
TypeScript

import { NormalizedCache, NormalizedCacheObject, StoreObject } from './types';
export declare class ObjectCache implements NormalizedCache {
protected data: NormalizedCacheObject;
constructor(data?: NormalizedCacheObject);
toObject(): NormalizedCacheObject;
get(dataId: string): StoreObject;
set(dataId: string, value: StoreObject): void;
delete(dataId: string): void;
clear(): void;
replace(newData: NormalizedCacheObject): void;
}
export declare function defaultNormalizedCacheFactory(seed?: NormalizedCacheObject): NormalizedCache;
//# sourceMappingURL=objectCache.d.ts.map