UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

12 lines (11 loc) • 417 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; } exports.whenSyncAccepted = whenSyncAccepted; exports.withAcceptedReceipt = withAcceptedReceipt; //# sourceMappingURL=sync-receipt.cjs.map