Skip to main content
zerotal

Documentation


Documentation / @zerotal/orm / index / TransitionContext

Interface: TransitionContext

Defined in: packages/orm/src/model/State.ts:40

Context a guard receives alongside the model: the reject helper and the from/to states.

Properties

reject

reject: RejectTransition

Defined in: packages/orm/src/model/State.ts:42

Reject the transition with a reason — throws a StateError carrying the model + from/to.


current

current: string

Defined in: packages/orm/src/model/State.ts:44

The state being transitioned from.


intended

intended: string

Defined in: packages/orm/src/model/State.ts:46

The state being transitioned to.