@apollo/client
Version:
A fully-featured caching GraphQL client.
16 lines (15 loc) • 1.22 kB
text/typescript
import type { ApolloClient, ErrorPolicy, MaybeMasked, ObservableQuery, OperationVariables } from "@apollo/client";
export type RefetchFunction<TData, TVariables extends OperationVariables, TErrorPolicy extends ErrorPolicy | undefined = undefined> = (variables?: Partial<TVariables>) => Promise<ApolloClient.QueryResult<MaybeMasked<TData>, TErrorPolicy>>;
export type FetchMoreFunction<TData, TVariables extends OperationVariables> = <TFetchData = TData, TFetchVars extends OperationVariables = TVariables, TErrorPolicy extends ErrorPolicy = "none">(fetchMoreOptions: ObservableQuery.FetchMoreOptions<TData, TVariables, TFetchData, TFetchVars> & {
/**
* Specifies how the query handles a response that returns both GraphQL errors and partial results.
*
* For details, see [GraphQL error policies](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies).
*
* The default value is `none`, meaning that the query result includes error details but not partial results.
*
* @docGroup 1. Operation options
*/
errorPolicy?: TErrorPolicy;
}) => Promise<ApolloClient.QueryResult<MaybeMasked<TFetchData>, TErrorPolicy>>;
//# sourceMappingURL=types.d.cts.map