apollo-client
Version:
A simple yet functional GraphQL client.
14 lines (13 loc) • 599 B
TypeScript
import { ApolloAction } from '../actions';
import { QueryStore } from '../queries/store';
import { MutationStore } from '../mutations/store';
import { ApolloReducerConfig } from '../store';
export interface NormalizedCache {
[dataId: string]: StoreObject;
}
export interface StoreObject {
__typename?: string;
[storeFieldKey: string]: StoreValue;
}
export declare type StoreValue = number | string | string[];
export declare function data(previousState: NormalizedCache, action: ApolloAction, queries: QueryStore, mutations: MutationStore, config: ApolloReducerConfig): NormalizedCache;