1 | import { DocumentNode } from 'graphql';
|
2 | export declare class MutationStore {
|
3 | private store;
|
4 | getStore(): {
|
5 | [mutationId: string]: MutationStoreValue;
|
6 | };
|
7 | get(mutationId: string): MutationStoreValue;
|
8 | initMutation(mutationId: string, mutation: DocumentNode, variables: Object | undefined): void;
|
9 | markMutationError(mutationId: string, error: Error): void;
|
10 | markMutationResult(mutationId: string): void;
|
11 | reset(): void;
|
12 | }
|
13 | export interface MutationStoreValue {
|
14 | mutation: DocumentNode;
|
15 | variables: Object;
|
16 | loading: boolean;
|
17 | error: Error | null;
|
18 | }
|
19 |
|
\ | No newline at end of file |