Skip to content

EventAdapter

Defined in: src/persistence/migration/Adapter.ts:53

Adapter for PersistentActor events. DomainEvent is the current event union the actor knows; JournalShape defaults to the same type but may diverge if the user wants to store a slimmer wire representation.

DomainEvent

JournalShape = DomainEvent

fromJournal(stored): DomainEvent

Defined in: src/persistence/migration/Adapter.ts:59

Inverse: take any past version off disk, return a current-version domain event.

StoredFrame

DomainEvent


manifest(event): string

Defined in: src/persistence/migration/Adapter.ts:55

Stable identifier for the current event variant — used as _t on disk.

DomainEvent

string


toJournal(event): OutboundFrame<JournalShape>

Defined in: src/persistence/migration/Adapter.ts:57

Convert a domain event to the journal triple.

DomainEvent

OutboundFrame<JournalShape>