Skip to main content
Version: Current

TruncateResult

@rotorsoft/act-root


@rotorsoft/act-root / act/src / TruncateResult

Type Alias: TruncateResult

TruncateResult = Map<string, { before?: Date; committed: Committed<Schemas, keyof Schemas>; deleted: number; }>

Defined in: libs/act/src/types/ports.ts:77

Result of a Store.truncate operation, keyed by stream name. Each entry contains the number of deleted events and the committed seed event (snapshot or tombstone).

Windowed entries (targets carrying a before boundary) echo the boundary back as before, and committed is the surviving boundary __snapshot__ โ€” an event the app wrote earlier, not a new seed. Windowed no-ops (no qualifying snapshot) are absent from the map entirely.