Interface: TriggerContext
August 8, 2026 ยท View on GitHub
@plures/praxis / index / TriggerContext
Interface: TriggerContext
Defined in: src/lifecycle/types.ts:127
Context available to trigger handlers
Properties
addExpectation
addExpectation: (
expectation) =>void
Defined in: src/lifecycle/types.ts:137
Register a new expectation
Parameters
expectation
Returns
void
config
config:
LifecycleConfig
Defined in: src/lifecycle/types.ts:133
Project configuration
emit
emit: (
name,data) =>void
Defined in: src/lifecycle/types.ts:135
Emit a new lifecycle event (for chaining)
Parameters
name
data
Record<string, unknown>
Returns
void
expectation?
optionalexpectation?:LifecycleExpectation
Defined in: src/lifecycle/types.ts:129
The expectation that triggered this (if any)
expectations
expectations:
Map<string,LifecycleExpectation>
Defined in: src/lifecycle/types.ts:131
All expectations in the project
getAllExpectations
getAllExpectations: () =>
LifecycleExpectation[]
Defined in: src/lifecycle/types.ts:139
Get all expectations