@@ -127,12 +127,12 @@ export class ApolloClient<TCacheShape> implements DataProxy {
127
127
//
128
128
// (undocumented)
129
129
localState: LocalState <TCacheShape >;
130
- mutate<TData = any , TVariables extends OperationVariables = OperationVariables , TContext extends Record <string , any > = DefaultContext , TCache extends ApolloCache <any > = ApolloCache <any >>(options : MutationOptions <TData , TVariables , TContext >): Promise <FetchResult <MaybeMasked <TData >>>;
130
+ mutate<TData = any , TVariables extends OperationVariables = OperationVariables , TContext extends Record <string , any > = DefaultContext , TCache extends ApolloCache <any > = ApolloCache <any >>(options : MutationOptions <TData , TVariables , TContext >): Promise <InteropMutateResult <MaybeMasked <TData >>>;
131
131
onClearStore(cb : () => Promise <any >): () => void ;
132
132
onResetStore(cb : () => Promise <any >): () => void ;
133
133
get prioritizeCacheValues(): boolean ;
134
134
set prioritizeCacheValues(value : boolean );
135
- query<T = any , TVariables extends OperationVariables = OperationVariables >(options : QueryOptions <TVariables , T >): Promise <ApolloQueryResult <MaybeMasked <T >>>;
135
+ query<T = any , TVariables extends OperationVariables = OperationVariables >(options : QueryOptions <TVariables , T >): Promise <InteropApolloQueryResult <MaybeMasked <T >>>;
136
136
// (undocumented)
137
137
queryDeduplication: boolean ;
138
138
readFragment<T = any , TVariables = OperationVariables >(options : DataProxy .Fragment <TVariables , T >, optimistic ? : boolean ): Unmasked <T > | null ;
@@ -147,7 +147,7 @@ export class ApolloClient<TCacheShape> implements DataProxy {
147
147
// @deprecated
148
148
setResolvers(resolvers : Resolvers | Resolvers []): void ;
149
149
stop(): void ;
150
- subscribe<T = any , TVariables extends OperationVariables = OperationVariables >(options : SubscriptionOptions <TVariables , T >): Observable <FetchResult <MaybeMasked <T >>>;
150
+ subscribe<T = any , TVariables extends OperationVariables = OperationVariables >(options : SubscriptionOptions <TVariables , T >): Observable <InteropSubscribeResult <MaybeMasked <T >>>;
151
151
// (undocumented)
152
152
readonly typeDefs: ApolloClientOptions <TCacheShape >[" typeDefs" ];
153
153
// (undocumented)
@@ -279,7 +279,6 @@ export interface ApolloPayloadResult<TData = Record<string, any>, TExtensions =
279
279
280
280
// @public (undocumented)
281
281
export interface ApolloQueryResult <T > {
282
- // (undocumented)
283
282
data: T ;
284
283
error? : ApolloError ;
285
284
errors? : ReadonlyArray <GraphQLFormattedError >;
@@ -1259,6 +1258,71 @@ export type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Pr
1259
1258
// @public (undocumented)
1260
1259
export type InternalRefetchQueryDescriptor = RefetchQueryDescriptor | QueryOptions ;
1261
1260
1261
+ // @public @deprecated (undocumented)
1262
+ export interface InteropApolloQueryResult <T > {
1263
+ data: T ;
1264
+ error? : ApolloError ;
1265
+ // @deprecated (undocumented)
1266
+ errors? : ReadonlyArray <GraphQLFormattedError >;
1267
+ // @deprecated (undocumented)
1268
+ loading: boolean ;
1269
+ // @deprecated (undocumented)
1270
+ networkStatus: NetworkStatus ;
1271
+ // @deprecated (undocumented)
1272
+ partial? : boolean ;
1273
+ }
1274
+
1275
+ // @public @deprecated (undocumented)
1276
+ export type InteropExecutionPatchResult <TData = Record <string , any >, TExtensions = Record <string , any >> = InteropMutationExecutionPatchInitialResult <TData , TExtensions > | InteropMutationExecutionPatchIncrementalResult <TData , TExtensions >;
1277
+
1278
+ // Warning: (ae-forgotten-export) The symbol "InteropSingleExecutionResult" needs to be exported by the entry point index.d.ts
1279
+ //
1280
+ // @public @deprecated (undocumented)
1281
+ export type InteropMutateResult <TData = Record <string , any >, TContext = DefaultContext , TExtensions = Record <string , any >> = InteropSingleExecutionResult <TData , TContext , TExtensions > | InteropExecutionPatchResult <TData , TExtensions >;
1282
+
1283
+ // @public @deprecated (undocumented)
1284
+ export interface InteropMutationExecutionPatchIncrementalResult <TData = Record <string , any >, TExtensions = Record <string , any >> {
1285
+ // (undocumented)
1286
+ data? : never ;
1287
+ // @deprecated (undocumented)
1288
+ errors? : never ;
1289
+ // (undocumented)
1290
+ extensions? : never ;
1291
+ // @deprecated (undocumented)
1292
+ hasNext? : boolean ;
1293
+ // @deprecated (undocumented)
1294
+ incremental? : IncrementalPayload <TData , TExtensions >[];
1295
+ }
1296
+
1297
+ // @public @deprecated (undocumented)
1298
+ export interface InteropMutationExecutionPatchInitialResult <TData = Record <string , any >, TExtensions = Record <string , any >> {
1299
+ // (undocumented)
1300
+ data: TData | null | undefined ;
1301
+ // @deprecated (undocumented)
1302
+ errors? : ReadonlyArray <GraphQLFormattedError >;
1303
+ // (undocumented)
1304
+ extensions? : TExtensions ;
1305
+ // @deprecated (undocumented)
1306
+ hasNext? : boolean ;
1307
+ // @deprecated (undocumented)
1308
+ incremental? : never ;
1309
+ }
1310
+
1311
+ // @public @deprecated (undocumented)
1312
+ interface InteropSingleExecutionResult <TData = Record <string , any >, TContext = DefaultContext , TExtensions = Record <string , any >> {
1313
+ // @deprecated (undocumented)
1314
+ context? : TContext ;
1315
+ // (undocumented)
1316
+ data? : TData | null ;
1317
+ // @deprecated (undocumented)
1318
+ errors? : ReadonlyArray <GraphQLFormattedError >;
1319
+ // (undocumented)
1320
+ extensions? : TExtensions ;
1321
+ }
1322
+
1323
+ // @public @deprecated (undocumented)
1324
+ export type InteropSubscribeResult <TData = Record <string , any >, TContext = DefaultContext , TExtensions = Record <string , any >> = InteropSingleExecutionResult <TData , TContext , TExtensions > | InteropExecutionPatchResult <TData , TExtensions >;
1325
+
1262
1326
// @public (undocumented)
1263
1327
interface InvalidateModifier {
1264
1328
// (undocumented)
@@ -1700,7 +1764,7 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
1700
1764
fetchMoreResult: Unmasked <TFetchData >;
1701
1765
variables: TFetchVars ;
1702
1766
}) => Unmasked <TData >;
1703
- }): Promise <ApolloQueryResult <MaybeMasked <TFetchData >>>;
1767
+ }): Promise <InteropApolloQueryResult <MaybeMasked <TFetchData >>>;
1704
1768
// (undocumented)
1705
1769
getCurrentResult(saveAsLastResult ? : boolean ): ApolloQueryResult <MaybeMasked <TData >>;
1706
1770
// (undocumented)
@@ -1721,9 +1785,9 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
1721
1785
readonly queryId: string ;
1722
1786
// (undocumented)
1723
1787
readonly queryName? : string ;
1724
- refetch(variables ? : Partial <TVariables >): Promise <ApolloQueryResult <MaybeMasked <TData >>>;
1788
+ refetch(variables ? : Partial <TVariables >): Promise <InteropApolloQueryResult <MaybeMasked <TData >>>;
1725
1789
// (undocumented)
1726
- reobserve(newOptions ? : Partial <WatchQueryOptions <TVariables , TData >>, newNetworkStatus ? : NetworkStatus ): Promise <ApolloQueryResult <MaybeMasked <TData >>>;
1790
+ reobserve(newOptions ? : Partial <WatchQueryOptions <TVariables , TData >>, newNetworkStatus ? : NetworkStatus ): Promise <InteropApolloQueryResult <MaybeMasked <TData >>>;
1727
1791
// Warning: (ae-forgotten-export) The symbol "Concast" needs to be exported by the entry point index.d.ts
1728
1792
//
1729
1793
// (undocumented)
@@ -1745,8 +1809,8 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
1745
1809
// @internal (undocumented)
1746
1810
protected scheduleNotify(): void ;
1747
1811
// (undocumented)
1748
- setOptions(newOptions : Partial <WatchQueryOptions <TVariables , TData >>): Promise <ApolloQueryResult <MaybeMasked <TData >>>;
1749
- setVariables(variables : TVariables ): Promise <ApolloQueryResult <MaybeMasked <TData >> | void >;
1812
+ setOptions(newOptions : Partial <WatchQueryOptions <TVariables , TData >>): Promise <InteropApolloQueryResult <MaybeMasked <TData >>>;
1813
+ setVariables(variables : TVariables ): Promise <InteropApolloQueryResult <MaybeMasked <TData >> | void >;
1750
1814
// (undocumented)
1751
1815
silentSetOptions(newOptions : Partial <WatchQueryOptions <TVariables , TData >>): void ;
1752
1816
startPolling(pollInterval : number ): void ;
@@ -2547,8 +2611,8 @@ interface WriteContext extends ReadMergeModifyContext {
2547
2611
// src/cache/inmemory/policies.ts:162:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
2548
2612
// src/cache/inmemory/policies.ts:162:3 - (ae-forgotten-export) The symbol "KeyArgsFunction" needs to be exported by the entry point index.d.ts
2549
2613
// src/cache/inmemory/types.ts:139:3 - (ae-forgotten-export) The symbol "KeyFieldsFunction" needs to be exported by the entry point index.d.ts
2550
- // src/core/ObservableQuery.ts:129 :5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
2551
- // src/core/ObservableQuery.ts:130 :5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
2614
+ // src/core/ObservableQuery.ts:130 :5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
2615
+ // src/core/ObservableQuery.ts:131 :5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
2552
2616
// src/core/QueryManager.ts:160:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
2553
2617
// src/core/QueryManager.ts:415:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
2554
2618
// src/link/http/selectHttpOptionsAndBody.ts:128:32 - (ae-forgotten-export) The symbol "HttpQueryOptions" needs to be exported by the entry point index.d.ts
0 commit comments