UNPKG

612 BTypeScriptView Raw
1import type { ApolloClient } from "../../core/index.js";
2/**
3 * @example
4 * ```jsx
5 * import { useApolloClient } from '@apollo/client';
6 *
7 * function SomeComponent() {
8 * const client = useApolloClient();
9 * // `client` is now set to the `ApolloClient` instance being used by the
10 * // application (that was configured using something like `ApolloProvider`)
11 * }
12 * ```
13 *
14 * @since 3.0.0
15 * @returns The `ApolloClient` instance being used by the application.
16 */
17export declare function useApolloClient(override?: ApolloClient<object>): ApolloClient<object>;
18//# sourceMappingURL=useApolloClient.d.ts.map
\No newline at end of file