UNPKG

@apollo/client-react-streaming

Version:

This package provides building blocks to create framework-level integration of Apollo Client with React's streaming SSR. See the [@apollo/client-integration-nextjs](https://github.com/apollographql/apollo-client-integrations/tree/main/packages/nextjs) pac

11 lines 606 B
import type { FetchPolicy, ApolloClient } from "@apollo/client"; export type TransportedOptions = { query: string; nextFetchPolicy?: FetchPolicy | undefined; } & Omit<ApolloClient.WatchQueryOptions, "query" | "skipPollAttempt" | "nextFetchPolicy">; export declare function serializeOptions<T extends ApolloClient.WatchQueryOptions<any, any>>(options: T): { query: string; nextFetchPolicy?: FetchPolicy | undefined; } & Omit<T, "query">; export declare function deserializeOptions(options: TransportedOptions): ApolloClient.WatchQueryOptions; //# sourceMappingURL=transportedOptions.d.ts.map