Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / JournalSerializationHook

Interface: JournalSerializationHook

Defined in: packages/core/dist/index.d.ts

Methods

fromStored()

ts
fromStored(e, ctx?): JournalEntry;

Defined in: packages/core/dist/index.d.ts

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/dist/index.d.ts

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

Parameters

ParameterType
eJournalEntry
ctx?JournalSerializationContext

Returns

JournalEntry