Skip to content

Commit 0bcd2f4

Browse files
Add all deprecations and warnings for React APIs (#12746)
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
1 parent 92ad409 commit 0bcd2f4

38 files changed

+853
-102
lines changed

.api-reports/api-report-react.api.md

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,55 @@ type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Promise<A
10361036
// @public (undocumented)
10371037
type 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)
10401089
interface InvalidateModifier {
10411090
// (undocumented)
@@ -1058,7 +1107,7 @@ function isReference(obj: any): obj is Reference;
10581107
type 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)
10641113
export 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)
10701119
export 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)
15391590
type OperationVariables = Record<string, any>;
15401591

1541-
// @public (undocumented)
1592+
// @public @deprecated (undocumented)
15421593
export function parser(document: DocumentNode): IDocumentDefinition;
15431594

15441595
// @public (undocumented)
@@ -1552,6 +1603,7 @@ type Path = ReadonlyArray<string | number>;
15521603

15531604
// @public
15541605
export 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: {
24292483
export 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
24352489
export function useQueryRefHandlers<TData = unknown, TVariables extends OperationVariables = OperationVariables>(queryRef: QueryRef<TData, TVariables>): UseQueryRefHandlersResult<TData, TVariables>;

.api-reports/api-report-react_components.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ interface ObservableQueryFields<TData, TVariables extends OperationVariables> {
13501350
}) => Unmasked<TData>;
13511351
}) => Promise<ApolloQueryResult<MaybeMasked<TFetchData>>>;
13521352
refetch: (variables?: Partial<TVariables>) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
1353-
// @internal (undocumented)
1353+
// @internal @deprecated (undocumented)
13541354
reobserve: (newOptions?: Partial<WatchQueryOptions<TVariables, TData>>, newNetworkStatus?: NetworkStatus) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
13551355
startPolling: (pollInterval: number) => void;
13561356
stopPolling: () => void;
@@ -1928,7 +1928,7 @@ interface SubscriptionResult<TData = any, TVariables = any> {
19281928
data?: MaybeMasked<TData>;
19291929
error?: ApolloError;
19301930
loading: boolean;
1931-
// @internal (undocumented)
1931+
// @internal @deprecated (undocumented)
19321932
variables?: TVariables;
19331933
}
19341934

.api-reports/api-report-react_context.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ interface ObservableQueryFields<TData, TVariables extends OperationVariables> {
13031303
}) => Unmasked<TData>;
13041304
}) => Promise<ApolloQueryResult<MaybeMasked<TFetchData>>>;
13051305
refetch: (variables?: Partial<TVariables>) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
1306-
// @internal (undocumented)
1306+
// @internal @deprecated (undocumented)
13071307
reobserve: (newOptions?: Partial<WatchQueryOptions<TVariables, TData>>, newNetworkStatus?: NetworkStatus) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
13081308
startPolling: (pollInterval: number) => void;
13091309
stopPolling: () => void;

.api-reports/api-report-react_hooks.api.md

Lines changed: 63 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,57 @@ type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Promise<A
978978
// @public (undocumented)
979979
type InternalRefetchQueryDescriptor = RefetchQueryDescriptor | QueryOptions;
980980

981+
// Warning: (ae-forgotten-export) The symbol "QueryResult" needs to be exported by the entry point index.d.ts
982+
//
983+
// @public @deprecated (undocumented)
984+
interface InteropLazyQueryExecResult<TData, TVariables extends OperationVariables> extends QueryResult<TData, TVariables> {
985+
// @deprecated
986+
called: boolean;
987+
// @deprecated
988+
client: ApolloClient<any>;
989+
// @deprecated (undocumented)
990+
errors?: ReadonlyArray<GraphQLFormattedError>;
991+
// @deprecated
992+
fetchMore: <TFetchData = TData, TFetchVars extends OperationVariables = TVariables>(fetchMoreOptions: FetchMoreQueryOptions<TFetchVars, TFetchData> & {
993+
updateQuery?: (previousQueryResult: Unmasked<TData>, options: {
994+
fetchMoreResult: Unmasked<TFetchData>;
995+
variables: TFetchVars;
996+
}) => Unmasked<TData>;
997+
}) => Promise<ApolloQueryResult<MaybeMasked<TFetchData>>>;
998+
// @deprecated
999+
loading: boolean;
1000+
// @deprecated
1001+
networkStatus: NetworkStatus;
1002+
// @deprecated
1003+
observable: ObservableQuery<TData, TVariables>;
1004+
// @deprecated
1005+
previousData?: MaybeMasked<TData>;
1006+
// @deprecated
1007+
refetch: (variables?: Partial<TVariables>) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
1008+
// @internal @deprecated (undocumented)
1009+
reobserve: (newOptions?: Partial<WatchQueryOptions<TVariables, TData>>, newNetworkStatus?: NetworkStatus) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
1010+
// @deprecated
1011+
startPolling: (pollInterval: number) => void;
1012+
// @deprecated
1013+
stopPolling: () => void;
1014+
// Warning: (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
1015+
//
1016+
// @deprecated
1017+
subscribeToMore: SubscribeToMoreFunction<TData, TVariables>;
1018+
// Warning: (ae-forgotten-export) The symbol "UpdateQueryMapFn" needs to be exported by the entry point index.d.ts
1019+
//
1020+
// @deprecated
1021+
updateQuery: (mapFn: UpdateQueryMapFn<TData, TVariables>) => void;
1022+
// @deprecated
1023+
variables: TVariables | undefined;
1024+
}
1025+
1026+
// @public @deprecated (undocumented)
1027+
interface InteropQueryResult<TData, TVariables extends OperationVariables> extends QueryResult<TData, TVariables> {
1028+
// @deprecated
1029+
called: boolean;
1030+
}
1031+
9811032
// @public (undocumented)
9821033
interface InvalidateModifier {
9831034
// (undocumented)
@@ -1000,10 +1051,10 @@ function isReference(obj: any): obj is Reference;
10001051
type IsStrictlyAny<T> = UnionToIntersection<UnionForAny<T>> extends never ? true : false;
10011052

10021053
// Warning: (ae-forgotten-export) The symbol "LazyQueryHookExecOptions" needs to be exported by the entry point index.d.ts
1003-
// Warning: (ae-forgotten-export) The symbol "QueryResult" needs to be exported by the entry point index.d.ts
1054+
// Warning: (ae-forgotten-export) The symbol "InteropLazyQueryExecResult" needs to be exported by the entry point index.d.ts
10041055
//
10051056
// @public (undocumented)
1006-
type LazyQueryExecFunction<TData, TVariables extends OperationVariables> = (options?: Partial<LazyQueryHookExecOptions<TData, TVariables>>) => Promise<QueryResult<TData, TVariables>>;
1057+
type LazyQueryExecFunction<TData, TVariables extends OperationVariables> = (options?: Partial<LazyQueryHookExecOptions<TData, TVariables>>) => Promise<InteropLazyQueryExecResult<TData, TVariables>>;
10071058

10081059
// Warning: (ae-forgotten-export) The symbol "LazyQueryHookOptions" needs to be exported by the entry point index.d.ts
10091060
//
@@ -1017,9 +1068,13 @@ interface LazyQueryHookExecOptions<TData = any, TVariables extends OperationVari
10171068
//
10181069
// @public (undocumented)
10191070
interface LazyQueryHookOptions<TData = any, TVariables extends OperationVariables = OperationVariables> extends BaseQueryOptions<TVariables, TData> {
1020-
// @internal (undocumented)
1071+
// @deprecated
1072+
context?: DefaultContext;
1073+
// @internal @deprecated (undocumented)
10211074
defaultOptions?: Partial<WatchQueryOptions<TVariables, TData>>;
10221075
// @deprecated
1076+
initialFetchPolicy?: WatchQueryFetchPolicy;
1077+
// @deprecated
10231078
onCompleted?: (data: MaybeMasked<TData>) => void;
10241079
// @deprecated
10251080
onError?: (error: ApolloError) => void;
@@ -1409,7 +1464,6 @@ class ObservableQuery<TData = any, TVariables extends OperationVariables = Opera
14091464
stopPolling(): void;
14101465
// Warning: (ae-forgotten-export) The symbol "SubscribeToMoreOptions" needs to be exported by the entry point index.d.ts
14111466
subscribeToMore<TSubscriptionData = TData, TSubscriptionVariables extends OperationVariables = TVariables>(options: SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData, TVariables>): () => void;
1412-
// Warning: (ae-forgotten-export) The symbol "UpdateQueryMapFn" needs to be exported by the entry point index.d.ts
14131467
updateQuery(mapFn: UpdateQueryMapFn<TData, TVariables>): void;
14141468
get variables(): TVariables | undefined;
14151469
}
@@ -1423,11 +1477,10 @@ interface ObservableQueryFields<TData, TVariables extends OperationVariables> {
14231477
}) => Unmasked<TData>;
14241478
}) => Promise<ApolloQueryResult<MaybeMasked<TFetchData>>>;
14251479
refetch: (variables?: Partial<TVariables>) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
1426-
// @internal (undocumented)
1480+
// @internal @deprecated (undocumented)
14271481
reobserve: (newOptions?: Partial<WatchQueryOptions<TVariables, TData>>, newNetworkStatus?: NetworkStatus) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
14281482
startPolling: (pollInterval: number) => void;
14291483
stopPolling: () => void;
1430-
// Warning: (ae-forgotten-export) The symbol "SubscribeToMoreFunction" needs to be exported by the entry point index.d.ts
14311484
subscribeToMore: SubscribeToMoreFunction<TData, TVariables>;
14321485
updateQuery: (mapFn: UpdateQueryMapFn<TData, TVariables>) => void;
14331486
variables: TVariables | undefined;
@@ -2002,7 +2055,7 @@ interface SubscriptionResult<TData = any, TVariables = any> {
20022055
data?: MaybeMasked<TData>;
20032056
error?: ApolloError;
20042057
loading: boolean;
2005-
// @internal (undocumented)
2058+
// @internal @deprecated (undocumented)
20062059
variables?: TVariables;
20072060
}
20082061

@@ -2261,8 +2314,10 @@ handlers: {
22612314
// @public
22622315
export function useMutation<TData = any, TVariables = OperationVariables, TContext = DefaultContext, 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>;
22632316

2317+
// Warning: (ae-forgotten-export) The symbol "InteropQueryResult" needs to be exported by the entry point index.d.ts
2318+
//
22642319
// @public
2265-
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>;
2320+
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>;
22662321

22672322
// @public
22682323
export function useQueryRefHandlers<TData = unknown, TVariables extends OperationVariables = OperationVariables>(queryRef: QueryRef<TData, TVariables>): UseQueryRefHandlersResult<TData, TVariables>;

.api-reports/api-report-react_internal.api.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,14 @@ type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Promise<A
10891089
// @public (undocumented)
10901090
type InternalRefetchQueryDescriptor = RefetchQueryDescriptor | QueryOptions;
10911091

1092+
// Warning: (ae-forgotten-export) The symbol "QueryResult" needs to be exported by the entry point index.d.ts
1093+
//
1094+
// @public @deprecated (undocumented)
1095+
interface InteropQueryResult<TData, TVariables extends OperationVariables> extends QueryResult<TData, TVariables> {
1096+
// @deprecated
1097+
called: boolean;
1098+
}
1099+
10921100
// @public (undocumented)
10931101
interface InvalidateModifier {
10941102
// (undocumented)
@@ -1458,7 +1466,7 @@ interface ObservableQueryFields<TData, TVariables extends OperationVariables> {
14581466
}) => Unmasked<TData>;
14591467
}) => Promise<ApolloQueryResult<MaybeMasked<TFetchData>>>;
14601468
refetch: (variables?: Partial<TVariables>) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
1461-
// @internal (undocumented)
1469+
// @internal @deprecated (undocumented)
14621470
reobserve: (newOptions?: Partial<WatchQueryOptions<TVariables, TData>>, newNetworkStatus?: NetworkStatus) => Promise<ApolloQueryResult<MaybeMasked<TData>>>;
14631471
startPolling: (pollInterval: number) => void;
14641472
stopPolling: () => void;
@@ -1517,6 +1525,7 @@ interface PendingPromise<TValue> extends Promise<TValue> {
15171525

15181526
// @public
15191527
export interface PreloadedQueryRef<TData = unknown, TVariables = unknown> extends QueryRef<TData, TVariables> {
1528+
// @deprecated
15201529
toPromise(): Promise<PreloadedQueryRef<TData, TVariables>>;
15211530
}
15221531

@@ -1539,6 +1548,8 @@ interface PreloadQueryFunction {
15391548
returnPartialData: true;
15401549
}): PreloadedQueryRef<DeepPartial<TData>, TVariables>;
15411550
<TData = unknown, TVariables extends OperationVariables = OperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, ...[options]: PreloadQueryOptionsArg<NoInfer_2<TVariables>>): PreloadedQueryRef<TData, TVariables>;
1551+
// (undocumented)
1552+
toPromise<TQueryRef extends PreloadedQueryRef<any, any>>(queryRef: TQueryRef): Promise<TQueryRef>;
15421553
}
15431554

15441555
// Warning: (ae-forgotten-export) The symbol "VariablesOption" needs to be exported by the entry point index.d.ts
@@ -2332,10 +2343,10 @@ type UseFragmentResult<TData> = {
23322343
missing?: MissingTree;
23332344
};
23342345

2335-
// Warning: (ae-forgotten-export) The symbol "QueryResult" needs to be exported by the entry point index.d.ts
2346+
// Warning: (ae-forgotten-export) The symbol "InteropQueryResult" needs to be exported by the entry point index.d.ts
23362347
//
23372348
// @public
2338-
function useQuery<TData = any, TVariables extends OperationVariables = OperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: QueryHookOptions<NoInfer_2<TData>, NoInfer_2<TVariables>>): QueryResult<TData, TVariables>;
2349+
function useQuery<TData = any, TVariables extends OperationVariables = OperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: QueryHookOptions<NoInfer_2<TData>, NoInfer_2<TVariables>>): InteropQueryResult<TData, TVariables>;
23392350

23402351
// Warning: (ae-forgotten-export) The symbol "UseQueryRefHandlersResult" needs to be exported by the entry point index.d.ts
23412352
//

0 commit comments

Comments
 (0)