@airbnb/lunar-apollo
Version:
Apollo and GraphQL utilities.
23 lines • 895 B
TypeScript
import { ApolloClient, ApolloClientOptions, InMemoryCacheConfig, ApolloLink, HttpLink } from '@apollo/client';
import { onError } from '@apollo/client/link/error';
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'];
cacheConfig?: InMemoryCacheConfig;
};
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