Skip to main content

ActLifecycleEvents

@rotorsoft/act-root


@rotorsoft/act-root / act/src / ActLifecycleEvents

Type Alias: ActLifecycleEvents<TSchemaReg, TEvents, TActions>

ActLifecycleEvents<TSchemaReg, TEvents, TActions> = object

Defined in: libs/act/src/act.ts:106

Lifecycle events emitted by Act, mapped to their payload type. Drives the typing of emit / on / off โ€” the event-name argument narrows its payload at the call site.

Type Parametersโ€‹

TSchemaRegโ€‹

TSchemaReg extends SchemaRegister<TActions>

TEventsโ€‹

TEvents extends Schemas

TActionsโ€‹

TActions extends Schemas

Propertiesโ€‹

ackedโ€‹

acked: Lease[]

Defined in: libs/act/src/act.ts:112


blockedโ€‹

blocked: BlockedLease[]

Defined in: libs/act/src/act.ts:113


closedโ€‹

closed: CloseResult

Defined in: libs/act/src/act.ts:115


committedโ€‹

committed: Snapshot<TSchemaReg, TEvents>[]

Defined in: libs/act/src/act.ts:111


notifiedโ€‹

notified: StoreNotification

Defined in: libs/act/src/act.ts:129

A different process committed an event to the same backing store.

Fires only when the configured store implements Store.notify and there is at least one registered reaction. The orchestrator uses the same signal internally to wake settle() โ€” listeners get the raw payload for SSE fan-out, dashboards, and audit logs.

Local commits do not fire notified (use committed for those): stores self-filter their own writes so this channel has a clean cross-process semantic.


settledโ€‹

settled: Drain<TEvents>

Defined in: libs/act/src/act.ts:114