Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / JournalSerializationHook

Interface: JournalSerializationHook

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

Methods

fromStored()

ts
fromStored(e): JournalEntry;

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

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

Parameters

ParameterType
eJournalEntry

Returns

JournalEntry


toStored()

ts
toStored(e): JournalEntry;

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

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

Parameters

ParameterType
eJournalEntry

Returns

JournalEntry