Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

index.ts

45 lines1.1 KB

1// Re-export from main entry (types, utilities, etc.)
2export {
3 // Types
4 type OfflineTransaction,
5 type OfflineConfig,
6 type OfflineMode,
7 type StorageAdapter,
8 type StorageDiagnostic,
9 type StorageDiagnosticCode,
10 type RetryPolicy,
11 type LeaderElection,
12 type OnlineDetector,
13 type CreateOfflineTransactionOptions,
14 type CreateOfflineActionOptions,
15 type SerializedError,
16 type SerializedMutation,
17 NonRetriableError,
18 // Storage adapters
19 IndexedDBAdapter,
20 LocalStorageAdapter,
21 // Retry policies
22 DefaultRetryPolicy,
23 BackoffCalculator,
24 // Coordination
25 WebLocksLeader,
26 BroadcastChannelLeader,
27 // Connectivity - export web detector too for flexibility
28 WebOnlineDetector,
29 DefaultOnlineDetector,
30 // API components
31 OfflineTransactionAPI,
32 createOfflineAction,
33 // Outbox management
34 OutboxManager,
35 TransactionSerializer,
36 // Execution engine
37 KeyScheduler,
38 TransactionExecutor,
39} from '../index'
40​
41// Export RN-specific detector
42export { ReactNativeOnlineDetector } from '../connectivity/ReactNativeOnlineDetector'
43​
44// Export RN-configured executor
45export { OfflineExecutor, startOfflineExecutor } from './OfflineExecutor'