UNPKG

apollo-client

Version:
19 lines (18 loc) 545 B
import { ApolloAction } from '../actions'; import { SelectionSet } from 'graphql'; export interface MutationStore { [mutationId: string]: MutationStoreValue; } export interface MutationStoreValue { mutationString: string; mutation: SelectionSetWithRoot; variables: Object; loading: boolean; error: Error; } export interface SelectionSetWithRoot { id: string; typeName: string; selectionSet: SelectionSet; } export declare function mutations(previousState: MutationStore, action: ApolloAction): MutationStore;