DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/functions/withAcceptedReceipt.md
withAcceptedReceipt
ts
function withAcceptedReceipt(visible, accepted): Promise<void>;Defined in: packages/db/src/sync-receipt.ts:14
Internal
Attaches the moment a sync transaction was accepted to the receipt that resolves when it is visible. A wrapping sync, such as persistence, accepts after its durable step.
Adapter infrastructure, not an application API.
Parameters#
visible#
Promise<void>
accepted#
Returns#
Promise<void>