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): JournalEntry;

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

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

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

Parameters

ParameterType
eJournalEntry

Returns

JournalEntry