UNPKG

apollo-client-cors-hack

Version:

A simple yet functional GraphQL client.

10 lines (9 loc) 457 B
import { NormalizedCache } from '../data/storeUtils'; import { Store } from '../store'; export declare type OptimisticStoreItem = { mutationId: string; data: NormalizedCache; }; export declare type OptimisticStore = OptimisticStoreItem[]; export declare function getDataWithOptimisticResults(store: Store): NormalizedCache; export declare function optimistic(previousState: any[] | undefined, action: any, store: any, config: any): OptimisticStore;