UNPKG

@airbnb/lunar-apollo

Version:

Apollo and GraphQL utilities.

24 lines 890 B
import { ApolloClient, ApolloClientOptions } from 'apollo-client'; import { ApolloLink } from 'apollo-link'; import { onError } from 'apollo-link-error'; import { HttpLink } from 'apollo-link-http'; import Mutation from './components/Mutation'; import Query from './components/Query'; import Provider from './components/Provider'; export * from 'apollo-client'; export { onError, HttpLink, Mutation, Query, Provider }; export declare type Settings = { links?: ApolloLink[]; resolvers?: ApolloClientOptions<null>['resolvers']; typeDefs?: ApolloClientOptions<null>['typeDefs']; }; declare class Apollo { settings: Required<Settings>; protected client?: ApolloClient<{}>; initialize(settings?: Settings): void; bootstrapClient(): void; getClient(): ApolloClient<{}>; } declare const _default: Apollo; export default _default; //# sourceMappingURL=index.d.ts.map