1 | import { ApolloClientOptions } from 'apollo-client';
|
2 | import { ApolloLink } from 'apollo-link';
|
3 | import { ApolloCache } from 'apollo-cache';
|
4 | import { Omit } from 'hops';
|
5 |
|
6 | declare 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 | }
|