seed_event
@rotorsoft/act-root / act/src / seed_event
Function: seed_event()
seed_event(
snapshot?,meta?):object
Defined in: libs/act/src/utils.ts:207
The event a full truncate seeds a stream with at version 0: a snapshot
of the given state, or a tombstone when there is none.
Parameters
snapshot?
meta?
Readonly<{ causation: { action?: Readonly<{[key: string]: unknown; actor: Readonly<{[key: string]: unknown; id: string; name: string; }>; expectedVersion?: number; stream: string; }> & object; event?: { id: number; name: string; stream: string; }; }; correlation: string; }>
Returns
object
data
data:
Schema
meta
meta:
EventMeta
name
name:
string