UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

14 lines (13 loc) • 379 B
const ACCEPTED = /* @__PURE__ */ Symbol(`tanstack-db.sync-receipt.accepted`); function withAcceptedReceipt(visible, accepted) { visible[ACCEPTED] = accepted; return visible; } function whenSyncAccepted(receipt) { return receipt === true ? true : receipt[ACCEPTED] ?? receipt; } export { whenSyncAccepted, withAcceptedReceipt }; //# sourceMappingURL=sync-receipt.js.map