@@ -99,6 +99,7 @@ import type {
9999 useCheckpointListener as useCheckpointListenerDecl ,
100100 useCheckpoints as useCheckpointsDecl ,
101101 useCheckpointsIds as useCheckpointsIdsDecl ,
102+ useCheckpointsOrCheckpointsById as useCheckpointsOrCheckpointsByIdDecl ,
102103 useCreateCheckpoints as useCreateCheckpointsDecl ,
103104 useCreateIndexes as useCreateIndexesDecl ,
104105 useCreateMergeableStore as useCreateMergeableStoreDecl ,
@@ -135,6 +136,7 @@ import type {
135136 useIndexIds as useIndexIdsDecl ,
136137 useIndexes as useIndexesDecl ,
137138 useIndexesIds as useIndexesIdsDecl ,
139+ useIndexesOrIndexesById as useIndexesOrIndexesByIdDecl ,
138140 useLinkedRowIds as useLinkedRowIdsDecl ,
139141 useLinkedRowIdsListener as useLinkedRowIdsListenerDecl ,
140142 useLocalRowIds as useLocalRowIdsDecl ,
@@ -144,17 +146,29 @@ import type {
144146 useMetricListener as useMetricListenerDecl ,
145147 useMetrics as useMetricsDecl ,
146148 useMetricsIds as useMetricsIdsDecl ,
149+ useMetricsOrMetricsById as useMetricsOrMetricsByIdDecl ,
147150 usePersister as usePersisterDecl ,
148151 usePersisterIds as usePersisterIdsDecl ,
152+ usePersisterOrPersisterById as usePersisterOrPersisterByIdDecl ,
149153 usePersisterStatus as usePersisterStatusDecl ,
150154 usePersisterStatusListener as usePersisterStatusListenerDecl ,
155+ useProvideCheckpoints as useProvideCheckpointsDecl ,
156+ useProvideIndexes as useProvideIndexesDecl ,
157+ useProvideMetrics as useProvideMetricsDecl ,
158+ useProvidePersister as useProvidePersisterDecl ,
159+ useProvideQueries as useProvideQueriesDecl ,
160+ useProvideRelationships as useProvideRelationshipsDecl ,
161+ useProvideStore as useProvideStoreDecl ,
162+ useProvideSynchronizer as useProvideSynchronizerDecl ,
151163 useQueries as useQueriesDecl ,
152164 useQueriesIds as useQueriesIdsDecl ,
165+ useQueriesOrQueriesById as useQueriesOrQueriesByIdDecl ,
153166 useQueryIds as useQueryIdsDecl ,
154167 useRedoInformation as useRedoInformationDecl ,
155168 useRelationshipIds as useRelationshipIdsDecl ,
156169 useRelationships as useRelationshipsDecl ,
157170 useRelationshipsIds as useRelationshipsIdsDecl ,
171+ useRelationshipsOrRelationshipsById as useRelationshipsOrRelationshipsByIdDecl ,
158172 useRemoteRowId as useRemoteRowIdDecl ,
159173 useRemoteRowIdListener as useRemoteRowIdListenerDecl ,
160174 useResultCell as useResultCellDecl ,
@@ -197,9 +211,11 @@ import type {
197211 useStartTransactionListener as useStartTransactionListenerDecl ,
198212 useStore as useStoreDecl ,
199213 useStoreIds as useStoreIdsDecl ,
214+ useStoreOrStoreById as useStoreOrStoreByIdDecl ,
200215 useStores as useStoresDecl ,
201216 useSynchronizer as useSynchronizerDecl ,
202217 useSynchronizerIds as useSynchronizerIdsDecl ,
218+ useSynchronizerOrSynchronizerById as useSynchronizerOrSynchronizerByIdDecl ,
203219 useSynchronizerStatus as useSynchronizerStatusDecl ,
204220 useSynchronizerStatusListener as useSynchronizerStatusListenerDecl ,
205221 useTableCellIds as useTableCellIdsDecl ,
@@ -479,12 +495,14 @@ export const useStore: typeof useStoreDecl = (id?: Id): Store | undefined =>
479495export const useStores : typeof useStoresDecl = ( ) : IdObj < Store > =>
480496 useThings ( Offsets . Store ) ;
481497
482- export const useStoreOrStoreById = (
498+ export const useStoreOrStoreById : typeof useStoreOrStoreByIdDecl = (
483499 storeOrStoreId ?: StoreOrStoreId ,
484500) : Store | undefined => useThingOrThingById ( storeOrStoreId , Offsets . Store ) ;
485501
486- export const useProvideStore = ( storeId : Id , store : Store ) : void =>
487- useProvideThing ( storeId , store , Offsets . Store ) ;
502+ export const useProvideStore : typeof useProvideStoreDecl = (
503+ storeId : Id ,
504+ store : Store ,
505+ ) : void => useProvideThing ( storeId , store , Offsets . Store ) ;
488506
489507export const useCreateMergeableStore : typeof useCreateMergeableStoreDecl = (
490508 create : ( ) => MergeableStore ,
@@ -1316,13 +1334,15 @@ export const useMetrics: typeof useMetricsDecl = (
13161334 id ?: Id ,
13171335) : Metrics | undefined => useThing ( id , Offsets . Metrics ) ;
13181336
1319- export const useMetricsOrMetricsById = (
1337+ export const useMetricsOrMetricsById : typeof useMetricsOrMetricsByIdDecl = (
13201338 metricsOrMetricsId ?: MetricsOrMetricsId ,
13211339) : Metrics | undefined =>
13221340 useThingOrThingById ( metricsOrMetricsId , Offsets . Metrics ) ;
13231341
1324- export const useProvideMetrics = ( metricsId : Id , metrics : Metrics ) : void =>
1325- useProvideThing ( metricsId , metrics , Offsets . Metrics ) ;
1342+ export const useProvideMetrics : typeof useProvideMetricsDecl = (
1343+ metricsId : Id ,
1344+ metrics : Metrics ,
1345+ ) : void => useProvideThing ( metricsId , metrics , Offsets . Metrics ) ;
13261346
13271347export const useMetricIds : typeof useMetricIdsDecl = (
13281348 metricsOrMetricsId ?: MetricsOrMetricsId ,
@@ -1371,13 +1391,15 @@ export const useIndexes: typeof useIndexesDecl = (
13711391 id ?: Id ,
13721392) : Indexes | undefined => useThing ( id , Offsets . Indexes ) ;
13731393
1374- export const useIndexesOrIndexesById = (
1394+ export const useIndexesOrIndexesById : typeof useIndexesOrIndexesByIdDecl = (
13751395 indexesOrIndexesId ?: IndexesOrIndexesId ,
13761396) : Indexes | undefined =>
13771397 useThingOrThingById ( indexesOrIndexesId , Offsets . Indexes ) ;
13781398
1379- export const useProvideIndexes = ( indexesId : Id , indexes : Indexes ) : void =>
1380- useProvideThing ( indexesId , indexes , Offsets . Indexes ) ;
1399+ export const useProvideIndexes : typeof useProvideIndexesDecl = (
1400+ indexesId : Id ,
1401+ indexes : Indexes ,
1402+ ) : void => useProvideThing ( indexesId , indexes , Offsets . Indexes ) ;
13811403
13821404export const useSliceIds : typeof useSliceIdsDecl = (
13831405 indexId : Id ,
@@ -1453,12 +1475,13 @@ export const useRelationships: typeof useRelationshipsDecl = (
14531475 id ?: Id ,
14541476) : Relationships | undefined => useThing ( id , Offsets . Relationships ) ;
14551477
1456- export const useRelationshipsOrRelationshipsById = (
1457- relationshipsOrRelationshipsId ?: RelationshipsOrRelationshipsId ,
1458- ) : Relationships | undefined =>
1459- useThingOrThingById ( relationshipsOrRelationshipsId , Offsets . Relationships ) ;
1478+ export const useRelationshipsOrRelationshipsById : typeof useRelationshipsOrRelationshipsByIdDecl =
1479+ (
1480+ relationshipsOrRelationshipsId ?: RelationshipsOrRelationshipsId ,
1481+ ) : Relationships | undefined =>
1482+ useThingOrThingById ( relationshipsOrRelationshipsId , Offsets . Relationships ) ;
14601483
1461- export const useProvideRelationships = (
1484+ export const useProvideRelationships : typeof useProvideRelationshipsDecl = (
14621485 relationshipsId : Id ,
14631486 relationships : Relationships ,
14641487) : void =>
@@ -1567,13 +1590,15 @@ export const useQueries: typeof useQueriesDecl = (
15671590 id ?: Id ,
15681591) : Queries | undefined => useThing ( id , Offsets . Queries ) ;
15691592
1570- export const useQueriesOrQueriesById = (
1593+ export const useQueriesOrQueriesById : typeof useQueriesOrQueriesByIdDecl = (
15711594 queriesOrQueriesId ?: QueriesOrQueriesId ,
15721595) : Queries | undefined =>
15731596 useThingOrThingById ( queriesOrQueriesId , Offsets . Queries ) ;
15741597
1575- export const useProvideQueries = ( queriesId : Id , queries : Queries ) : void =>
1576- useProvideThing ( queriesId , queries , Offsets . Queries ) ;
1598+ export const useProvideQueries : typeof useProvideQueriesDecl = (
1599+ queriesId : Id ,
1600+ queries : Queries ,
1601+ ) : void => useProvideThing ( queriesId , queries , Offsets . Queries ) ;
15771602
15781603export const useQueryIds : typeof useQueryIdsDecl = (
15791604 queriesOrQueriesId ?: QueriesOrQueriesId ,
@@ -1815,12 +1840,13 @@ export const useCheckpoints: typeof useCheckpointsDecl = (
18151840 id ?: Id ,
18161841) : Checkpoints | undefined => useThing ( id , Offsets . Checkpoints ) ;
18171842
1818- export const useCheckpointsOrCheckpointsById = (
1819- checkpointsOrCheckpointsId ?: CheckpointsOrCheckpointsId ,
1820- ) : Checkpoints | undefined =>
1821- useThingOrThingById ( checkpointsOrCheckpointsId , Offsets . Checkpoints ) ;
1843+ export const useCheckpointsOrCheckpointsById : typeof useCheckpointsOrCheckpointsByIdDecl =
1844+ (
1845+ checkpointsOrCheckpointsId ?: CheckpointsOrCheckpointsId ,
1846+ ) : Checkpoints | undefined =>
1847+ useThingOrThingById ( checkpointsOrCheckpointsId , Offsets . Checkpoints ) ;
18221848
1823- export const useProvideCheckpoints = (
1849+ export const useProvideCheckpoints : typeof useProvideCheckpointsDecl = (
18241850 checkpointsId : Id ,
18251851 checkpoints : Checkpoints ,
18261852) : void => useProvideThing ( checkpointsId , checkpoints , Offsets . Checkpoints ) ;
@@ -2012,12 +2038,11 @@ export const usePersister: typeof usePersisterDecl = (
20122038 id ?: Id ,
20132039) : AnyPersister | undefined => useThing ( id , Offsets . Persister ) ;
20142040
2015- export const usePersisterOrPersisterById = (
2016- persisterOrPersisterId ?: PersisterOrPersisterId ,
2017- ) : AnyPersister | undefined =>
2018- useThingOrThingById ( persisterOrPersisterId , Offsets . Persister ) ;
2041+ export const usePersisterOrPersisterById : typeof usePersisterOrPersisterByIdDecl =
2042+ ( persisterOrPersisterId ?: PersisterOrPersisterId ) : AnyPersister | undefined =>
2043+ useThingOrThingById ( persisterOrPersisterId , Offsets . Persister ) ;
20192044
2020- export const useProvidePersister = (
2045+ export const useProvidePersister : typeof useProvidePersisterDecl = (
20212046 persisterId : Id ,
20222047 persister : AnyPersister ,
20232048) : void => useProvideThing ( persisterId , persister , Offsets . Persister ) ;
@@ -2086,12 +2111,13 @@ export const useSynchronizer: typeof useSynchronizerDecl = (
20862111 id ?: Id ,
20872112) : Synchronizer | undefined => useThing ( id , Offsets . Synchronizer ) ;
20882113
2089- export const useSynchronizerOrSynchronizerById = (
2090- synchronizerOrSynchronizerId ?: SynchronizerOrSynchronizerId ,
2091- ) : Synchronizer | undefined =>
2092- useThingOrThingById ( synchronizerOrSynchronizerId , Offsets . Synchronizer ) ;
2114+ export const useSynchronizerOrSynchronizerById : typeof useSynchronizerOrSynchronizerByIdDecl =
2115+ (
2116+ synchronizerOrSynchronizerId ?: SynchronizerOrSynchronizerId ,
2117+ ) : Synchronizer | undefined =>
2118+ useThingOrThingById ( synchronizerOrSynchronizerId , Offsets . Synchronizer ) ;
20932119
2094- export const useProvideSynchronizer = (
2120+ export const useProvideSynchronizer : typeof useProvideSynchronizerDecl = (
20952121 persisterId : Id ,
20962122 persister : Synchronizer ,
20972123) : void => useProvideThing ( persisterId , persister , Offsets . Synchronizer ) ;
0 commit comments