@tanstack/db
Version:
A reactive client store for building super fast apps on sync
14 lines (13 loc) • 509 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
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;
}
exports.whenSyncAccepted = whenSyncAccepted;
exports.withAcceptedReceipt = withAcceptedReceipt;
//# sourceMappingURL=sync-receipt.cjs.map