UNPKG

apollo-link-context

Version:

An easy way to set and cache context changes for Apollo Link

4 lines 272 B
import { ApolloLink, GraphQLRequest } from 'apollo-link'; export declare type ContextSetter = (operation: GraphQLRequest, prevContext: any) => Promise<any> | any; export declare function setContext(setter: ContextSetter): ApolloLink; //# sourceMappingURL=index.d.ts.map