Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / JournalSerializationHook

Interface: JournalSerializationHook

Defined in: packages/core/src/l0/serialization.ts:41

Methods

fromStored()

ts
fromStored(e, ctx?): JournalEntry;

Defined in: packages/core/src/l0/serialization.ts:45

Applied at load; MUST be symmetric with toStored for replay to hold.

Parameters

ParameterType
eJournalEntry
ctx?JournalSerializationContext

Returns

JournalEntry


toStored()

ts
toStored(e, ctx?): JournalEntry;

Defined in: packages/core/src/l0/serialization.ts:43

Applied at append; kernel ordering/identity fields MUST pass through.

Parameters

ParameterType
eJournalEntry
ctx?JournalSerializationContext

Returns

JournalEntry