UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

11 lines (10 loc) • 370 B
var 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