@shopify/react-graphql
Version:
Tools for creating type-safe and asynchronous GraphQL components for React
12 lines • 450 B
TypeScript
import React from 'react';
import type { ApolloClient } from '@apollo/client';
import type { DocumentNode } from 'graphql-typed';
export interface ApolloContextValue<CacheShape = any> {
client?: ApolloClient<CacheShape>;
operations?: Map<string, {
query: DocumentNode;
variables: any;
}>;
}
export declare const ApolloContext: React.Context<ApolloContextValue<any> | undefined>;
//# sourceMappingURL=ApolloContext.d.ts.map