UNPKG

648 BTypeScriptView Raw
1import { DocumentNode } from 'graphql';
2export 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}
13export interface MutationStoreValue {
14 mutation: DocumentNode;
15 variables: Object;
16 loading: boolean;
17 error: Error | null;
18}
19//# sourceMappingURL=mutations.d.ts.map
\No newline at end of file