UNPKG

730 BTypeScriptView Raw
1/// <reference types="chai" />
2/// <reference types="node" />
3/// <reference types="typed-graphql" />
4import { ApolloAction } from '../actions';
5import { SelectionSet } from 'graphql';
6import { FragmentMap } from '../queries/getFromAST';
7export interface MutationStore {
8 [mutationId: string]: MutationStoreValue;
9}
10export interface MutationStoreValue {
11 mutationString: string;
12 mutation: SelectionSetWithRoot;
13 variables: Object;
14 loading: boolean;
15 error: Error;
16 fragmentMap: FragmentMap;
17}
18export interface SelectionSetWithRoot {
19 id: string;
20 typeName: string;
21 selectionSet: SelectionSet;
22}
23export declare function mutations(previousState: MutationStore, action: ApolloAction): MutationStore;