1 | import { DataProxy } from './DataProxy';
|
2 | export declare namespace Cache {
|
3 | type WatchCallback = (newData: any) => void;
|
4 | interface EvictionResult {
|
5 | success: Boolean;
|
6 | }
|
7 | interface ReadOptions<TVariables = any> extends DataProxy.Query<TVariables> {
|
8 | rootId?: string;
|
9 | previousResult?: any;
|
10 | optimistic: boolean;
|
11 | }
|
12 | interface WriteOptions<TResult = any, TVariables = any> extends DataProxy.Query<TVariables> {
|
13 | dataId: string;
|
14 | result: TResult;
|
15 | }
|
16 | interface DiffOptions extends ReadOptions {
|
17 | returnPartialData?: boolean;
|
18 | }
|
19 | interface WatchOptions extends ReadOptions {
|
20 | callback: WatchCallback;
|
21 | }
|
22 | interface EvictOptions<TVariables = any> extends DataProxy.Query<TVariables> {
|
23 | rootId?: string;
|
24 | }
|
25 | export import DiffResult = DataProxy.DiffResult;
|
26 | export import WriteQueryOptions = DataProxy.WriteQueryOptions;
|
27 | export import WriteFragmentOptions = DataProxy.WriteFragmentOptions;
|
28 | export import WriteDataOptions = DataProxy.WriteDataOptions;
|
29 | export import Fragment = DataProxy.Fragment;
|
30 | }
|
31 |
|
\ | No newline at end of file |