CloseTarget
@rotorsoft/act-root / act/src / CloseTarget
Type Alias: CloseTarget
CloseTarget =
object
Defined in: libs/act/src/types/action.ts:495
Per-stream options for the archive-and-truncate (or restart-with- snapshot) operation.
Seeโ
IAct.close for the close-the-books API
Propertiesโ
archive?โ
readonlyoptionalarchive?: () =>Promise<void>
Defined in: libs/act/src/types/action.ts:504
Called before truncation while the stream is guarded (no concurrent writes).
Use app.query() or app.query_array() inside for pagination.
If it throws, the stream remains guarded but is not truncated.
Returnsโ
Promise<void>
restart?โ
readonlyoptionalrestart?:boolean
Defined in: libs/act/src/types/action.ts:500
When true, restart with a __snapshot__ of the final state.
When false/omitted, permanently close with a __tombstone__.
streamโ
readonlystream:string
Defined in: libs/act/src/types/action.ts:497
Stream name to close