CloseTarget
@rotorsoft/act-root / act/src / CloseTarget
Type Alias: CloseTarget
CloseTarget =
object
Defined in: libs/act/src/types/action.ts:452
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:461
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:457
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:454
Stream name to close