@@ -93,7 +93,7 @@ export abstract class ApolloCache<TSerialized> implements DataProxy {
9393}
9494
9595// @public
96- export class ApolloClient <TCacheShape > implements DataProxy {
96+ export class ApolloClient <TCacheShape = any > implements DataProxy {
9797 // (undocumented)
9898 __actionHookForDevTools(cb : () => any ): void ;
9999 constructor (options : ApolloClientOptions <TCacheShape >);
@@ -137,9 +137,9 @@ export class ApolloClient<TCacheShape> implements DataProxy {
137137 queryDeduplication: boolean ;
138138 readFragment<T = any , TVariables = OperationVariables >(options : DataProxy .Fragment <TVariables , T >, optimistic ? : boolean ): Unmasked <T > | null ;
139139 readQuery<T = any , TVariables = OperationVariables >(options : DataProxy .Query <TVariables , T >, optimistic ? : boolean ): Unmasked <T > | null ;
140- reFetchObservableQueries(includeStandby ? : boolean ): Promise <ApolloQueryResult <any >[]>;
141- refetchQueries<TCache extends ApolloCache <any > = ApolloCache <TCacheShape >, TResult = Promise <ApolloQueryResult <any >>>(options : RefetchQueriesOptions <TCache , TResult >): RefetchQueriesResult <TResult >;
142- resetStore(): Promise <ApolloQueryResult <any >[] | null >;
140+ reFetchObservableQueries(includeStandby ? : boolean ): Promise <InteropApolloQueryResult <any >[]>;
141+ refetchQueries<TCache extends ApolloCache <any > = ApolloCache <TCacheShape >, TResult = Promise <InteropApolloQueryResult <any >>>(options : RefetchQueriesOptions <TCache , TResult >): RefetchQueriesResult <TResult >;
142+ resetStore(): Promise <InteropApolloQueryResult <any >[] | null >;
143143 restore(serializedState : TCacheShape ): ApolloCache <TCacheShape >;
144144 setLink(newLink : ApolloLink ): void ;
145145 // @deprecated
@@ -255,13 +255,13 @@ export class ApolloLink {
255255 getMemoryInternals? : () => unknown ;
256256 // @internal
257257 readonly left? : ApolloLink ;
258- // (undocumented)
258+ // @deprecated (undocumented)
259259 protected onError(error : any , observer ? : Observer <FetchResult >): false | void ;
260260 // (undocumented)
261261 request(operation : Operation , forward ? : NextLink ): Observable <FetchResult > | null ;
262262 // @internal
263263 readonly right? : ApolloLink ;
264- // (undocumented)
264+ // @deprecated (undocumented)
265265 setOnError(fn : ApolloLink [" onError" ]): this ;
266266 // (undocumented)
267267 static split(test : (op : Operation ) => boolean , left : ApolloLink | RequestHandler , right ? : ApolloLink | RequestHandler ): ApolloLink ;
@@ -811,7 +811,7 @@ export const execute: typeof ApolloLink.execute;
811811
812812// Warning: (ae-forgotten-export) The symbol "ExecutionPatchResultBase" needs to be exported by the entry point index.d.ts
813813//
814- // @public (undocumented)
814+ // @public @deprecated (undocumented)
815815export interface ExecutionPatchIncrementalResult <TData = Record <string , any >, TExtensions = Record <string , any >> extends ExecutionPatchResultBase {
816816 // (undocumented)
817817 data? : never ;
@@ -823,7 +823,7 @@ export interface ExecutionPatchIncrementalResult<TData = Record<string, any>, TE
823823 incremental? : IncrementalPayload <TData , TExtensions >[];
824824}
825825
826- // @public (undocumented)
826+ // @public @deprecated (undocumented)
827827export interface ExecutionPatchInitialResult <TData = Record <string , any >, TExtensions = Record <string , any >> extends ExecutionPatchResultBase {
828828 // (undocumented)
829829 data: TData | null | undefined ;
@@ -835,7 +835,7 @@ export interface ExecutionPatchInitialResult<TData = Record<string, any>, TExten
835835 incremental? : never ;
836836}
837837
838- // @public (undocumented)
838+ // @public @deprecated (undocumented)
839839export type ExecutionPatchResult <TData = Record <string , any >, TExtensions = Record <string , any >> = ExecutionPatchInitialResult <TData , TExtensions > | ExecutionPatchIncrementalResult <TData , TExtensions >;
840840
841841// @public (undocumented)
@@ -993,10 +993,10 @@ TData
993993// @public (undocumented)
994994export const from: typeof ApolloLink .from ;
995995
996- // @public (undocumented)
996+ // @public @deprecated (undocumented)
997997export function fromError<T >(errorValue : any ): Observable <T >;
998998
999- // @public (undocumented)
999+ // @public @deprecated (undocumented)
10001000export function fromPromise<T >(promise : Promise <T >): Observable <T >;
10011001
10021002// @internal
@@ -1142,7 +1142,7 @@ interface IgnoreModifier {
11421142// @public (undocumented)
11431143const _ignoreModifier: unique symbol ;
11441144
1145- // @public (undocumented)
1145+ // @public @deprecated (undocumented)
11461146export interface IncrementalPayload <TData , TExtensions > {
11471147 // (undocumented)
11481148 data: TData | null ;
@@ -1253,7 +1253,7 @@ export interface InternalRefetchQueriesOptions<TCache extends ApolloCache<any>,
12531253}
12541254
12551255// @public (undocumented)
1256- export type InternalRefetchQueriesResult <TResult > = TResult extends boolean ? Promise <ApolloQueryResult <any >> : TResult ;
1256+ export type InternalRefetchQueriesResult <TResult > = TResult extends boolean ? Promise <InteropApolloQueryResult <any >> : TResult ;
12571257
12581258// @public (undocumented)
12591259export type InternalRefetchQueryDescriptor = RefetchQueryDescriptor | QueryOptions ;
@@ -1335,7 +1335,7 @@ const _invalidateModifier: unique symbol;
13351335// @public (undocumented)
13361336type IsAny <T > = 0 extends 1 & T ? true : false ;
13371337
1338- // @public (undocumented)
1338+ // @public @deprecated (undocumented)
13391339export function isApolloError(err : Error ): err is ApolloError ;
13401340
13411341// @public
@@ -1646,7 +1646,7 @@ export type MutationQueryReducersMap<T = {
16461646
16471647// Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts
16481648//
1649- // @public (undocumented)
1649+ // @public @deprecated (undocumented)
16501650interface MutationSharedOptions <TData = any , TVariables = OperationVariables , TContext = DefaultContext , TCache extends ApolloCache <any > = ApolloCache <any >> extends MutationBaseOptions <TData , TVariables , TContext , TCache > {
16511651 fetchPolicy? : MutationFetchPolicy ;
16521652 keepRootFields? : boolean ;
@@ -1767,9 +1767,9 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
17671767 }): Promise <InteropApolloQueryResult <MaybeMasked <TFetchData >>>;
17681768 // (undocumented)
17691769 getCurrentResult(saveAsLastResult ? : boolean ): ApolloQueryResult <MaybeMasked <TData >>;
1770- // (undocumented)
1770+ // @deprecated (undocumented)
17711771 getLastError(variablesMustMatch ? : boolean ): ApolloError | undefined ;
1772- // (undocumented)
1772+ // @deprecated (undocumented)
17731773 getLastResult(variablesMustMatch ? : boolean ): ApolloQueryResult <TData > | undefined ;
17741774 // (undocumented)
17751775 hasObservers(): boolean ;
@@ -1781,7 +1781,7 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
17811781 readonly options: WatchQueryOptions <TVariables , TData >;
17821782 // (undocumented)
17831783 get query(): TypedDocumentNode <TData , TVariables >;
1784- // (undocumented)
1784+ // @deprecated (undocumented)
17851785 readonly queryId: string ;
17861786 // (undocumented)
17871787 readonly queryName? : string ;
@@ -1794,21 +1794,21 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
17941794 reobserveAsConcast(newOptions ? : Partial <WatchQueryOptions <TVariables , TData >>, newNetworkStatus ? : NetworkStatus ): Concast <ApolloQueryResult <TData >>;
17951795 // @internal (undocumented)
17961796 resetDiff(): void ;
1797- // (undocumented)
1797+ // @deprecated (undocumented)
17981798 resetLastResults(): void ;
17991799 // @internal (undocumented)
18001800 protected resetNotifications(): void ;
1801- // (undocumented)
1801+ // @deprecated (undocumented)
18021802 resetQueryStoreErrors(): void ;
18031803 // (undocumented)
18041804 resubscribeAfterError(onNext : (value : ApolloQueryResult <MaybeMasked <TData >>) => void , onError ? : (error : any ) => void , onComplete ? : () => void ): ObservableSubscription ;
18051805 // (undocumented)
18061806 resubscribeAfterError(observer : Observer <ApolloQueryResult <TData >>): ObservableSubscription ;
1807- // (undocumented)
1807+ // @deprecated (undocumented)
18081808 result(): Promise <ApolloQueryResult <MaybeMasked <TData >>>;
18091809 // @internal (undocumented)
18101810 protected scheduleNotify(): void ;
1811- // (undocumented)
1811+ // @deprecated (undocumented)
18121812 setOptions(newOptions : Partial <WatchQueryOptions <TVariables , TData >>): Promise <InteropApolloQueryResult <MaybeMasked <TData >>>;
18131813 setVariables(variables : TVariables ): Promise <InteropApolloQueryResult <MaybeMasked <TData >> | void >;
18141814 // (undocumented)
@@ -1862,7 +1862,7 @@ type OptionsUnion<TData, TVariables extends OperationVariables, TContext> = Watc
18621862// @public (undocumented)
18631863export function parseAndCheckHttpResponse(operations : Operation | Operation []): (response : Response ) => Promise <any >;
18641864
1865- // @public (undocumented)
1865+ // @public @deprecated (undocumented)
18661866export type Path = ReadonlyArray <string | number >;
18671867
18681868// @public (undocumented)
@@ -2230,7 +2230,7 @@ export interface RefetchQueriesOptions<TCache extends ApolloCache<any>, TResult>
22302230// Warning: (ae-forgotten-export) The symbol "IsStrictlyAny" needs to be exported by the entry point index.d.ts
22312231//
22322232// @public (undocumented)
2233- export type RefetchQueriesPromiseResults <TResult > = IsStrictlyAny <TResult > extends true ? any [] : TResult extends boolean ? ApolloQueryResult <any >[] : TResult extends PromiseLike <infer U > ? U [] : TResult [];
2233+ export type RefetchQueriesPromiseResults <TResult > = IsStrictlyAny <TResult > extends true ? any [] : TResult extends boolean ? InteropApolloQueryResult <any >[] : TResult extends PromiseLike <infer U > ? U [] : TResult [];
22342234
22352235// @public (undocumented)
22362236export interface RefetchQueriesResult <TResult > extends Promise <RefetchQueriesPromiseResults <TResult >> {
@@ -2439,10 +2439,10 @@ export interface SubscriptionOptions<TVariables = OperationVariables, TData = an
24392439// @public (undocumented)
24402440type takeOneFromUnion <T > = unionToIntersection <T extends T ? (x : T ) => 0 : never > extends ((x : infer U ) => 0 ) ? U : never ;
24412441
2442- // @public (undocumented)
2442+ // @public @deprecated (undocumented)
24432443export const throwServerError: (response : Response , result : any , message : string ) => never ;
24442444
2445- // @public (undocumented)
2445+ // @public @deprecated (undocumented)
24462446export function toPromise<R >(observable : Observable <R >): Promise <R >;
24472447
24482448// @public (undocumented)
@@ -2611,8 +2611,8 @@ interface WriteContext extends ReadMergeModifyContext {
26112611// src/cache/inmemory/policies.ts:162:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
26122612// src/cache/inmemory/policies.ts:162:3 - (ae-forgotten-export) The symbol "KeyArgsFunction" needs to be exported by the entry point index.d.ts
26132613// src/cache/inmemory/types.ts:139:3 - (ae-forgotten-export) The symbol "KeyFieldsFunction" 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
2614+ // src/core/ObservableQuery.ts:143 :5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
2615+ // src/core/ObservableQuery.ts:144 :5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
26162616// src/core/QueryManager.ts:160:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
26172617// src/core/QueryManager.ts:415:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
26182618// 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