UNPKG

691 BTypeScriptView Raw
1import type * as ReactTypes from "react";
2import type { ApolloClient } from "../../core/index.js";
3import type { RenderPromises } from "../ssr/index.js";
4export interface ApolloContextValue {
5 client?: ApolloClient<object>;
6 renderPromises?: RenderPromises;
7}
8export declare function getApolloContext(): ReactTypes.Context<ApolloContextValue>;
9/**
10 * @deprecated This function has no "resetting" effect since Apollo Client 3.4.12,
11 * and will be removed in the next major version of Apollo Client.
12 * If you want to get the Apollo Context, use `getApolloContext` instead.
13 */
14export declare const resetApolloContext: typeof getApolloContext;
15//# sourceMappingURL=ApolloContext.d.ts.map
\No newline at end of file