UNPKG

@tokens-studio/sdk

Version:
37 lines 1.44 kB
import { ApolloCache, type StoreObject } from '@apollo/client/core/index.js'; /** * This is a normalized representation of the Apollo query result cache. It consists of * a flattened representation of query result trees. */ export interface NormalizedCacheObject { __META?: { extraRootIds: string[]; }; [dataId: string]: StoreObject | undefined; } export declare class VoidCache extends ApolloCache<NormalizedCacheObject> { read(_options: any): null; write(_options: any): undefined; diff(_options: any): {}; watch(_watch: any): () => void; reset(): Promise<void>; evict(_options: any): boolean; restore(_data: any): this; extract(_optimistic: any): {}; removeOptimistic(_id: any): void; batch<U>(_options: any): U; performTransaction(_update: any, _optimisticId: any): void; recordOptimisticTransaction(_transaction: any, _optimisticId: any): void; transformDocument(document: any): any; transformForLink(document: any): any; identify(_object: any): undefined; gc(): string[]; modify(_options: any): boolean; readQuery(_options: any, _optimistic?: any): null; readFragment(_options: any, _optimistic?: any): null; writeQuery(_opts: any): undefined; writeFragment(_opts: any): undefined; updateQuery(_options: any, _update: any): null; updateFragment(_options: any, _update: any): null; } //# sourceMappingURL=cache.d.ts.map