SnapshotAdapter
Defined in: src/persistence/migration/Adapter.ts:67
Adapter for PersistentActor snapshots. Structurally identical to
EventAdapter but kept as a separate type so signatures read clearly
(a snapshotAdapter() returning an EventAdapter would be misleading).
Type Parameters
Section titled “Type Parameters”DomainState
Section titled “DomainState”DomainState
StoredShape
Section titled “StoredShape”StoredShape = DomainState
Methods
Section titled “Methods”fromJournal()
Section titled “fromJournal()”fromJournal(
stored):DomainState
Defined in: src/persistence/migration/Adapter.ts:70
Parameters
Section titled “Parameters”stored
Section titled “stored”StoredFrame
Returns
Section titled “Returns”DomainState
manifest()
Section titled “manifest()”manifest(
state):string
Defined in: src/persistence/migration/Adapter.ts:68
Parameters
Section titled “Parameters”DomainState
Returns
Section titled “Returns”string
toJournal()
Section titled “toJournal()”toJournal(
state):OutboundFrame<StoredShape>
Defined in: src/persistence/migration/Adapter.ts:69
Parameters
Section titled “Parameters”DomainState
Returns
Section titled “Returns”OutboundFrame<StoredShape>