UNPKG

509 BTypeScriptView Raw
1import { ApolloClientOptions } from 'apollo-client';
2import { ApolloLink } from 'apollo-link';
3import { ApolloCache } from 'apollo-cache';
4import { Omit } from 'hops';
5
6declare module 'hops-graphql' {
7 interface ApolloClientOptionsHops<TCacheShape>
8 extends Omit<Omit<ApolloClientOptions<TCacheShape>, 'link'>, 'cache'> {
9 link?: ApolloLink;
10 cache?: ApolloCache<TCacheShape>;
11 }
12
13 export interface HopsGraphqlOptions<TCacheShape = any> {
14 graphql?: ApolloClientOptionsHops<TCacheShape>;
15 }
16}