@@ -1036,6 +1036,55 @@ type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Promise<A
10361036// @public (undocumented)
10371037type InternalRefetchQueryDescriptor = RefetchQueryDescriptor | QueryOptions ;
10381038
1039+ // @public @deprecated (undocumented)
1040+ export interface InteropLazyQueryExecResult <TData , TVariables extends OperationVariables > extends QueryResult <TData , TVariables > {
1041+ // @deprecated
1042+ called: boolean ;
1043+ // @deprecated
1044+ client: ApolloClient <any >;
1045+ // @deprecated (undocumented)
1046+ errors? : ReadonlyArray <GraphQLFormattedError >;
1047+ // @deprecated
1048+ fetchMore: <TFetchData = TData , TFetchVars extends OperationVariables = TVariables >(fetchMoreOptions : FetchMoreQueryOptions <TFetchVars , TFetchData > & {
1049+ updateQuery? : (previousQueryResult : Unmasked <TData >, options : {
1050+ fetchMoreResult: Unmasked <TFetchData >;
1051+ variables: TFetchVars ;
1052+ }) => Unmasked <TData >;
1053+ }) => Promise <ApolloQueryResult <MaybeMasked <TFetchData >>>;
1054+ // @deprecated
1055+ loading: boolean ;
1056+ // @deprecated
1057+ networkStatus: NetworkStatus ;
1058+ // @deprecated
1059+ observable: ObservableQuery <TData , TVariables >;
1060+ // @deprecated
1061+ previousData? : MaybeMasked <TData >;
1062+ // @deprecated
1063+ refetch: (variables ? : Partial <TVariables >) => Promise <ApolloQueryResult <MaybeMasked <TData >>>;
1064+ // @internal @deprecated (undocumented)
1065+ reobserve: (newOptions ? : Partial <WatchQueryOptions <TVariables , TData >>, newNetworkStatus ? : NetworkStatus ) => Promise <ApolloQueryResult <MaybeMasked <TData >>>;
1066+ // @deprecated
1067+ startPolling: (pollInterval : number ) => void ;
1068+ // @deprecated
1069+ stopPolling: () => void ;
1070+ // Warning: (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
1071+ //
1072+ // @deprecated
1073+ subscribeToMore: SubscribeToMoreFunction <TData , TVariables >;
1074+ // Warning: (ae-forgotten-export) The symbol "UpdateQueryMapFn" needs to be exported by the entry point index.d.ts
1075+ //
1076+ // @deprecated
1077+ updateQuery: (mapFn : UpdateQueryMapFn <TData , TVariables >) => void ;
1078+ // @deprecated
1079+ variables: TVariables | undefined ;
1080+ }
1081+
1082+ // @public @deprecated (undocumented)
1083+ export interface InteropQueryResult <TData , TVariables extends OperationVariables > extends QueryResult <TData , TVariables > {
1084+ // @deprecated
1085+ called: boolean ;
1086+ }
1087+
10391088// @public (undocumented)
10401089interface InvalidateModifier {
10411090 // (undocumented)
@@ -1058,7 +1107,7 @@ function isReference(obj: any): obj is Reference;
10581107type IsStrictlyAny <T > = UnionToIntersection <UnionForAny <T >> extends never ? true : false ;
10591108
10601109// @public (undocumented)
1061- export type LazyQueryExecFunction <TData , TVariables extends OperationVariables > = (options ? : Partial <LazyQueryHookExecOptions <TData , TVariables >>) => Promise <QueryResult <TData , TVariables >>;
1110+ export type LazyQueryExecFunction <TData , TVariables extends OperationVariables > = (options ? : Partial <LazyQueryHookExecOptions <TData , TVariables >>) => Promise <InteropLazyQueryExecResult <TData , TVariables >>;
10621111
10631112// @public (undocumented)
10641113export interface LazyQueryHookExecOptions <TData = any , TVariables extends OperationVariables = OperationVariables > extends LazyQueryHookOptions <TData , TVariables > {
@@ -1068,9 +1117,13 @@ export interface LazyQueryHookExecOptions<TData = any, TVariables extends Operat
10681117
10691118// @public (undocumented)
10701119export interface LazyQueryHookOptions <TData = any , TVariables extends OperationVariables = OperationVariables > extends BaseQueryOptions <TVariables , TData > {
1071- // @internal (undocumented)
1120+ // @deprecated
1121+ context? : Context ;
1122+ // @internal @deprecated (undocumented)
10721123 defaultOptions? : Partial <WatchQueryOptions <TVariables , TData >>;
10731124 // @deprecated
1125+ initialFetchPolicy? : WatchQueryFetchPolicy ;
1126+ // @deprecated
10741127 onCompleted? : (data : MaybeMasked <TData >) => void ;
10751128 // @deprecated
10761129 onError? : (error : ApolloError ) => void ;
@@ -1465,7 +1518,6 @@ class ObservableQuery<TData = any, TVariables extends OperationVariables = Opera
14651518 stopPolling(): void ;
14661519 // Warning: (ae-forgotten-export) The symbol "SubscribeToMoreOptions" needs to be exported by the entry point index.d.ts
14671520 subscribeToMore<TSubscriptionData = TData , TSubscriptionVariables extends OperationVariables = TVariables >(options : SubscribeToMoreOptions <TData , TSubscriptionVariables , TSubscriptionData , TVariables >): () => void ;
1468- // Warning: (ae-forgotten-export) The symbol "UpdateQueryMapFn" needs to be exported by the entry point index.d.ts
14691521 updateQuery(mapFn : UpdateQueryMapFn <TData , TVariables >): void ;
14701522 get variables(): TVariables | undefined ;
14711523}
@@ -1479,11 +1531,10 @@ export interface ObservableQueryFields<TData, TVariables extends OperationVariab
14791531 }) => Unmasked <TData >;
14801532 }) => Promise <ApolloQueryResult <MaybeMasked <TFetchData >>>;
14811533 refetch: (variables ? : Partial <TVariables >) => Promise <ApolloQueryResult <MaybeMasked <TData >>>;
1482- // @internal (undocumented)
1534+ // @internal @deprecated (undocumented)
14831535 reobserve: (newOptions ? : Partial <WatchQueryOptions <TVariables , TData >>, newNetworkStatus ? : NetworkStatus ) => Promise <ApolloQueryResult <MaybeMasked <TData >>>;
14841536 startPolling: (pollInterval : number ) => void ;
14851537 stopPolling: () => void ;
1486- // Warning: (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
14871538 subscribeToMore: SubscribeToMoreFunction <TData , TVariables >;
14881539 updateQuery: (mapFn : UpdateQueryMapFn <TData , TVariables >) => void ;
14891540 variables: TVariables | undefined ;
@@ -1538,7 +1589,7 @@ export function operationName(type: DocumentType_2): string;
15381589// @public (undocumented)
15391590type OperationVariables = Record <string , any >;
15401591
1541- // @public (undocumented)
1592+ // @public @deprecated (undocumented)
15421593export function parser(document : DocumentNode ): IDocumentDefinition ;
15431594
15441595// @public (undocumented)
@@ -1552,6 +1603,7 @@ type Path = ReadonlyArray<string | number>;
15521603
15531604// @public
15541605export interface PreloadedQueryRef <TData = unknown , TVariables = unknown > extends QueryRef <TData , TVariables > {
1606+ // @deprecated
15551607 toPromise(): Promise <PreloadedQueryRef <TData , TVariables >>;
15561608}
15571609
@@ -1573,6 +1625,8 @@ export interface PreloadQueryFunction {
15731625 returnPartialData: true ;
15741626 }): PreloadedQueryRef <DeepPartial <TData >, TVariables >;
15751627 <TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, ... [options ]: PreloadQueryOptionsArg <NoInfer_2 <TVariables >>): PreloadedQueryRef <TData , TVariables >;
1628+ // (undocumented)
1629+ toPromise<TQueryRef extends PreloadedQueryRef <any , any >>(queryRef : TQueryRef ): Promise <TQueryRef >;
15761630}
15771631
15781632// @public (undocumented)
@@ -2178,7 +2232,7 @@ export interface SubscriptionResult<TData = any, TVariables = any> {
21782232 data? : MaybeMasked <TData >;
21792233 error? : ApolloError ;
21802234 loading: boolean ;
2181- // @internal (undocumented)
2235+ // @internal @deprecated (undocumented)
21822236 variables? : TVariables ;
21832237}
21842238
@@ -2429,7 +2483,7 @@ handlers: {
24292483export function useMutation<TData = any , TVariables = OperationVariables , TContext = Context , TCache extends ApolloCache <any > = ApolloCache <any >>(mutation : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : MutationHookOptions <NoInfer_2 <TData >, NoInfer_2 <TVariables >, TContext , TCache >): MutationTuple <TData , TVariables , TContext , TCache >;
24302484
24312485// @public
2432- export function useQuery<TData = any , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : QueryHookOptions <NoInfer_2 <TData >, NoInfer_2 <TVariables >>): QueryResult <TData , TVariables >;
2486+ export function useQuery<TData = any , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : QueryHookOptions <NoInfer_2 <TData >, NoInfer_2 <TVariables >>): InteropQueryResult <TData , TVariables >;
24332487
24342488// @public
24352489export function useQueryRefHandlers<TData = unknown , TVariables extends OperationVariables = OperationVariables >(queryRef : QueryRef <TData , TVariables >): UseQueryRefHandlersResult <TData , TVariables >;
0 commit comments