@@ -725,9 +725,6 @@ type FetchMoreFunction<TData, TVariables extends OperationVariables> = (fetchMor
725
725
}) => TData ;
726
726
}) => Promise <ApolloQueryResult <TData >>;
727
727
728
- // @public (undocumented)
729
- type FetchMoreOptions <TData > = Parameters <ObservableQuery <TData >[" fetchMore" ]>[0 ];
730
-
731
728
// @public (undocumented)
732
729
interface FetchMoreQueryOptions <TVariables , TData = any > {
733
730
// (undocumented)
@@ -768,14 +765,6 @@ interface FragmentMap {
768
765
// @public (undocumented)
769
766
type FragmentMatcher = (rootValue : any , typeCondition : string , context : any ) => boolean ;
770
767
771
- // @public (undocumented)
772
- interface FulfilledPromise <TValue > extends Promise <TValue > {
773
- // (undocumented)
774
- status: " fulfilled" ;
775
- // (undocumented)
776
- value: TValue ;
777
- }
778
-
779
768
// @internal
780
769
const getApolloCacheMemoryInternals: (() => {
781
770
cache: {
@@ -860,58 +849,6 @@ interface IncrementalPayload<TData, TExtensions> {
860
849
path: Path ;
861
850
}
862
851
863
- // @public (undocumented)
864
- class InternalQueryReference <TData = unknown > {
865
- // Warning: (ae-forgotten-export) The symbol "InternalQueryReferenceOptions" needs to be exported by the entry point index.d.ts
866
- constructor (observable : ObservableQuery <TData , any >, options : InternalQueryReferenceOptions );
867
- // (undocumented)
868
- applyOptions(watchQueryOptions : ObservedOptions ): QueryRefPromise <TData >;
869
- // Warning: (ae-forgotten-export) The symbol "ObservedOptions" needs to be exported by the entry point index.d.ts
870
- //
871
- // (undocumented)
872
- didChangeOptions(watchQueryOptions : ObservedOptions ): boolean ;
873
- // (undocumented)
874
- get disposed(): boolean ;
875
- // Warning: (ae-forgotten-export) The symbol "FetchMoreOptions" needs to be exported by the entry point index.d.ts
876
- //
877
- // (undocumented)
878
- fetchMore(options : FetchMoreOptions <TData >): Promise <ApolloQueryResult <TData >>;
879
- // Warning: (ae-forgotten-export) The symbol "QueryKey" needs to be exported by the entry point index.d.ts
880
- //
881
- // (undocumented)
882
- readonly key: QueryKey ;
883
- // Warning: (ae-forgotten-export) The symbol "Listener" needs to be exported by the entry point index.d.ts
884
- //
885
- // (undocumented)
886
- listen(listener : Listener <TData >): () => void ;
887
- // (undocumented)
888
- readonly observable: ObservableQuery <TData >;
889
- // Warning: (ae-forgotten-export) The symbol "QueryRefPromise" needs to be exported by the entry point index.d.ts
890
- //
891
- // (undocumented)
892
- promise: QueryRefPromise <TData >;
893
- // (undocumented)
894
- refetch(variables : OperationVariables | undefined ): Promise <ApolloQueryResult <TData >>;
895
- // (undocumented)
896
- reinitialize(): void ;
897
- // (undocumented)
898
- result: ApolloQueryResult <TData >;
899
- // (undocumented)
900
- retain(): () => void ;
901
- // (undocumented)
902
- softRetain(): () => void ;
903
- // (undocumented)
904
- get watchQueryOptions(): WatchQueryOptions <OperationVariables , TData >;
905
- }
906
-
907
- // @public (undocumented)
908
- interface InternalQueryReferenceOptions {
909
- // (undocumented)
910
- autoDisposeTimeoutMs? : number ;
911
- // (undocumented)
912
- onDispose? : () => void ;
913
- }
914
-
915
852
// Warning: (ae-forgotten-export) The symbol "InternalRefetchQueryDescriptor" needs to be exported by the entry point index.d.ts
916
853
// Warning: (ae-forgotten-export) The symbol "RefetchQueriesIncludeShorthand" needs to be exported by the entry point index.d.ts
917
854
//
@@ -991,9 +928,6 @@ execute: LazyQueryExecFunction<TData, TVariables>,
991
928
result : QueryResult <TData , TVariables >
992
929
];
993
930
994
- // @public (undocumented)
995
- type Listener <TData > = (promise : QueryRefPromise <TData >) => void ;
996
-
997
931
// @public (undocumented)
998
932
type LoadableQueryHookFetchPolicy = Extract <WatchQueryFetchPolicy , " cache-first" | " network-only" | " no-cache" | " cache-and-network" >;
999
933
@@ -1323,14 +1257,6 @@ interface ObservableQueryFields<TData, TVariables extends OperationVariables> {
1323
1257
variables: TVariables | undefined ;
1324
1258
}
1325
1259
1326
- // @public (undocumented)
1327
- const OBSERVED_CHANGED_OPTIONS: readonly [" canonizeResults" , " context" , " errorPolicy" , " fetchPolicy" , " refetchWritePolicy" , " returnPartialData" ];
1328
-
1329
- // Warning: (ae-forgotten-export) The symbol "OBSERVED_CHANGED_OPTIONS" needs to be exported by the entry point index.d.ts
1330
- //
1331
- // @public (undocumented)
1332
- type ObservedOptions = Pick <WatchQueryOptions , (typeof OBSERVED_CHANGED_OPTIONS )[number ]>;
1333
-
1334
1260
// @public (undocumented)
1335
1261
interface OnDataOptions <TData = any > {
1336
1262
// (undocumented)
@@ -1382,27 +1308,11 @@ type OperationVariables = Record<string, any>;
1382
1308
// @public (undocumented)
1383
1309
type Path = ReadonlyArray <string | number >;
1384
1310
1385
- // @public (undocumented)
1386
- interface PendingPromise <TValue > extends Promise <TValue > {
1387
- // (undocumented)
1388
- status: " pending" ;
1389
- }
1390
-
1391
1311
// @public (undocumented)
1392
1312
type Primitive = null | undefined | string | number | boolean | symbol | bigint ;
1393
1313
1394
1314
// @public (undocumented)
1395
- const PROMISE_SYMBOL: unique symbol ;
1396
-
1397
- // Warning: (ae-forgotten-export) The symbol "PendingPromise" needs to be exported by the entry point index.d.ts
1398
- // Warning: (ae-forgotten-export) The symbol "FulfilledPromise" needs to be exported by the entry point index.d.ts
1399
- // Warning: (ae-forgotten-export) The symbol "RejectedPromise" needs to be exported by the entry point index.d.ts
1400
- //
1401
- // @public (undocumented)
1402
- type PromiseWithState <TValue > = PendingPromise <TValue > | FulfilledPromise <TValue > | RejectedPromise <TValue >;
1403
-
1404
- // @public (undocumented)
1405
- const QUERY_REFERENCE_SYMBOL: unique symbol ;
1315
+ const QUERY_REF_BRAND: unique symbol ;
1406
1316
1407
1317
// @public (undocumented)
1408
1318
interface QueryFunctionOptions <TData = any , TVariables extends OperationVariables = OperationVariables > extends BaseQueryOptions <TVariables , TData > {
@@ -1478,12 +1388,6 @@ class QueryInfo {
1478
1388
variables? : Record <string , any >;
1479
1389
}
1480
1390
1481
- // @public (undocumented)
1482
- interface QueryKey {
1483
- // (undocumented)
1484
- __queryKey? : string ;
1485
- }
1486
-
1487
1391
// @public (undocumented)
1488
1392
type QueryListener = (queryInfo : QueryInfo ) => void ;
1489
1393
@@ -1628,21 +1532,11 @@ interface QueryOptions<TVariables = OperationVariables, TData = any> {
1628
1532
}
1629
1533
1630
1534
// @public
1631
- interface QueryReference <TData = unknown , TVariables = unknown > {
1535
+ interface QueryRef <TData = unknown , TVariables = unknown > {
1632
1536
// @internal (undocumented)
1633
- [PROMISE_SYMBOL ]: QueryRefPromise <TData >;
1634
- // Warning: (ae-forgotten-export) The symbol "InternalQueryReference" needs to be exported by the entry point index.d.ts
1635
- //
1636
- // @internal (undocumented)
1637
- readonly [QUERY_REFERENCE_SYMBOL ]: InternalQueryReference <TData >;
1638
- toPromise(): Promise <QueryReference <TData , TVariables >>;
1537
+ [QUERY_REF_BRAND ]? (variables : TVariables ): TData ;
1639
1538
}
1640
1539
1641
- // Warning: (ae-forgotten-export) The symbol "PromiseWithState" needs to be exported by the entry point index.d.ts
1642
- //
1643
- // @public (undocumented)
1644
- type QueryRefPromise <TData > = PromiseWithState <ApolloQueryResult <TData >>;
1645
-
1646
1540
// Warning: (ae-forgotten-export) The symbol "ObservableQueryFields" needs to be exported by the entry point index.d.ts
1647
1541
//
1648
1542
// @public (undocumented)
@@ -1744,14 +1638,6 @@ type RefetchQueryDescriptor = string | DocumentNode;
1744
1638
// @public (undocumented)
1745
1639
type RefetchWritePolicy = " merge" | " overwrite" ;
1746
1640
1747
- // @public (undocumented)
1748
- interface RejectedPromise <TValue > extends Promise <TValue > {
1749
- // (undocumented)
1750
- reason: unknown ;
1751
- // (undocumented)
1752
- status: " rejected" ;
1753
- }
1754
-
1755
1641
// @public (undocumented)
1756
1642
type RequestHandler = (operation : Operation , forward : NextLink ) => Observable <FetchResult > | null ;
1757
1643
@@ -1955,11 +1841,11 @@ interface UriFunction {
1955
1841
export function useApolloClient(override ? : ApolloClient <object >): ApolloClient <object >;
1956
1842
1957
1843
// Warning: (ae-forgotten-export) The symbol "BackgroundQueryHookOptionsNoInfer" needs to be exported by the entry point index.d.ts
1958
- // Warning: (ae-forgotten-export) The symbol "QueryReference " needs to be exported by the entry point index.d.ts
1844
+ // Warning: (ae-forgotten-export) The symbol "QueryRef " needs to be exported by the entry point index.d.ts
1959
1845
//
1960
1846
// @public (undocumented)
1961
1847
export function useBackgroundQuery<TData , TVariables extends OperationVariables , TOptions extends Omit <BackgroundQueryHookOptions <TData >, " variables" >>(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : BackgroundQueryHookOptionsNoInfer <TData , TVariables > & TOptions ): [
1962
- (QueryReference <TOptions [" errorPolicy" ] extends " ignore" | " all" ? TOptions [" returnPartialData" ] extends true ? DeepPartial <TData > | undefined : TData | undefined : TOptions [" returnPartialData" ] extends true ? DeepPartial <TData > : TData , TVariables > | (TOptions [" skip" ] extends boolean ? undefined : never )),
1848
+ (QueryRef <TOptions [" errorPolicy" ] extends " ignore" | " all" ? TOptions [" returnPartialData" ] extends true ? DeepPartial <TData > | undefined : TData | undefined : TOptions [" returnPartialData" ] extends true ? DeepPartial <TData > : TData , TVariables > | (TOptions [" skip" ] extends boolean ? undefined : never )),
1963
1849
UseBackgroundQueryResult <TData , TVariables >
1964
1850
];
1965
1851
@@ -1968,15 +1854,15 @@ export function useBackgroundQuery<TData = unknown, TVariables extends Operation
1968
1854
returnPartialData: true ;
1969
1855
errorPolicy: " ignore" | " all" ;
1970
1856
}): [
1971
- QueryReference <DeepPartial <TData > | undefined , TVariables >,
1857
+ QueryRef <DeepPartial <TData > | undefined , TVariables >,
1972
1858
UseBackgroundQueryResult <TData , TVariables >
1973
1859
];
1974
1860
1975
1861
// @public (undocumented)
1976
1862
export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options : BackgroundQueryHookOptionsNoInfer <TData , TVariables > & {
1977
1863
errorPolicy: " ignore" | " all" ;
1978
1864
}): [
1979
- QueryReference <TData | undefined , TVariables >,
1865
+ QueryRef <TData | undefined , TVariables >,
1980
1866
UseBackgroundQueryResult <TData , TVariables >
1981
1867
];
1982
1868
@@ -1985,31 +1871,28 @@ export function useBackgroundQuery<TData = unknown, TVariables extends Operation
1985
1871
skip: boolean ;
1986
1872
returnPartialData: true ;
1987
1873
}): [
1988
- QueryReference <DeepPartial <TData >, TVariables > | undefined ,
1874
+ QueryRef <DeepPartial <TData >, TVariables > | undefined ,
1989
1875
UseBackgroundQueryResult <TData , TVariables >
1990
1876
];
1991
1877
1992
1878
// @public (undocumented)
1993
1879
export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options : BackgroundQueryHookOptionsNoInfer <TData , TVariables > & {
1994
1880
returnPartialData: true ;
1995
1881
}): [
1996
- QueryReference <DeepPartial <TData >, TVariables >,
1882
+ QueryRef <DeepPartial <TData >, TVariables >,
1997
1883
UseBackgroundQueryResult <TData , TVariables >
1998
1884
];
1999
1885
2000
1886
// @public (undocumented)
2001
1887
export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options : BackgroundQueryHookOptionsNoInfer <TData , TVariables > & {
2002
1888
skip: boolean ;
2003
1889
}): [
2004
- QueryReference <TData , TVariables > | undefined ,
1890
+ QueryRef <TData , TVariables > | undefined ,
2005
1891
UseBackgroundQueryResult <TData , TVariables >
2006
1892
];
2007
1893
2008
1894
// @public (undocumented)
2009
- export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : BackgroundQueryHookOptionsNoInfer <TData , TVariables >): [
2010
- QueryReference <TData , TVariables >,
2011
- UseBackgroundQueryResult <TData , TVariables >
2012
- ];
1895
+ export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : BackgroundQueryHookOptionsNoInfer <TData , TVariables >): [QueryRef <TData , TVariables >, UseBackgroundQueryResult <TData , TVariables >];
2013
1896
2014
1897
// @public (undocumented)
2015
1898
export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options : SkipToken ): [undefined , UseBackgroundQueryResult <TData , TVariables >];
@@ -2018,13 +1901,13 @@ export function useBackgroundQuery<TData = unknown, TVariables extends Operation
2018
1901
export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options : SkipToken | (BackgroundQueryHookOptionsNoInfer <TData , TVariables > & {
2019
1902
returnPartialData: true ;
2020
1903
})): [
2021
- QueryReference <DeepPartial <TData >, TVariables > | undefined ,
1904
+ QueryRef <DeepPartial <TData >, TVariables > | undefined ,
2022
1905
UseBackgroundQueryResult <TData , TVariables >
2023
1906
];
2024
1907
2025
1908
// @public (undocumented)
2026
1909
export function useBackgroundQuery<TData = unknown , TVariables extends OperationVariables = OperationVariables >(query : DocumentNode | TypedDocumentNode <TData , TVariables >, options ? : SkipToken | BackgroundQueryHookOptionsNoInfer <TData , TVariables >): [
2027
- QueryReference <TData , TVariables > | undefined ,
1910
+ QueryRef <TData , TVariables > | undefined ,
2028
1911
UseBackgroundQueryResult <TData , TVariables >
2029
1912
];
2030
1913
@@ -2089,7 +1972,7 @@ export function useLoadableQuery<TData = unknown, TVariables extends OperationVa
2089
1972
// @public (undocumented)
2090
1973
export type UseLoadableQueryResult <TData = unknown , TVariables extends OperationVariables = OperationVariables > = [
2091
1974
loadQuery : LoadQueryFunction <TVariables >,
2092
- queryRef : QueryReference <TData , TVariables > | null ,
1975
+ queryRef : QueryRef <TData , TVariables > | null ,
2093
1976
{
2094
1977
fetchMore: FetchMoreFunction <TData , TVariables >;
2095
1978
refetch: RefetchFunction <TData , TVariables >;
@@ -2107,7 +1990,7 @@ export function useMutation<TData = any, TVariables = OperationVariables, TConte
2107
1990
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 >;
2108
1991
2109
1992
// @public
2110
- export function useQueryRefHandlers<TData = unknown , TVariables extends OperationVariables = OperationVariables >(queryRef : QueryReference <TData , TVariables >): UseQueryRefHandlersResult <TData , TVariables >;
1993
+ export function useQueryRefHandlers<TData = unknown , TVariables extends OperationVariables = OperationVariables >(queryRef : QueryRef <TData , TVariables >): UseQueryRefHandlersResult <TData , TVariables >;
2111
1994
2112
1995
// @public (undocumented)
2113
1996
export interface UseQueryRefHandlersResult <TData = unknown , TVariables extends OperationVariables = OperationVariables > {
@@ -2121,7 +2004,7 @@ export interface UseQueryRefHandlersResult<TData = unknown, TVariables extends O
2121
2004
export function useReactiveVar<T >(rv : ReactiveVar <T >): T ;
2122
2005
2123
2006
// @public (undocumented)
2124
- export function useReadQuery<TData >(queryRef : QueryReference <TData >): UseReadQueryResult <TData >;
2007
+ export function useReadQuery<TData >(queryRef : QueryRef <TData >): UseReadQueryResult <TData >;
2125
2008
2126
2009
// @public (undocumented)
2127
2010
export interface UseReadQueryResult <TData = unknown > {
@@ -2248,7 +2131,7 @@ interface WatchQueryOptions<TVariables extends OperationVariables = OperationVar
2248
2131
// src/core/watchQueryOptions.ts:269:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
2249
2132
// src/react/hooks/useBackgroundQuery.ts:29:3 - (ae-forgotten-export) The symbol "FetchMoreFunction" needs to be exported by the entry point index.d.ts
2250
2133
// src/react/hooks/useBackgroundQuery.ts:30:3 - (ae-forgotten-export) The symbol "RefetchFunction" needs to be exported by the entry point index.d.ts
2251
- // src/react/hooks/useLoadableQuery.ts:106 :1 - (ae-forgotten-export) The symbol "ResetFunction" needs to be exported by the entry point index.d.ts
2134
+ // src/react/hooks/useLoadableQuery.ts:107 :1 - (ae-forgotten-export) The symbol "ResetFunction" needs to be exported by the entry point index.d.ts
2252
2135
2253
2136
// (No @packageDocumentation comment for this package)
2254
2137
0 commit comments