rulvar API reference / @rulvar/core / toJournalValue
Function: toJournalValue()
ts
function toJournalValue(value, site): Json;Defined in: packages/core/src/journal/serializable.ts:69
Validates and snapshots a value for the journal: the returned value is a JSON round-trip clone, decoupled from later caller mutations, with undefined object members dropped.
Parameters
| Parameter | Type |
|---|---|
value | unknown |
site | string |