Kaizen
Browse modulesLifecyclelifecycle/serverInterfaces

Interface: TransitionDef

Defined in: shared/lifecycle/types/machine.ts:18

A transition edge in a machine definition.

Properties

allowSelf?

optional allowSelf?: boolean;

Defined in: shared/lifecycle/types/machine.ts:36

Allow to === from (a self-transition). Without this, a self-edge is a NoOpTransition policy violation and defineMachine rejects it.


effects?

optional effects?: string[];

Defined in: shared/lifecycle/types/machine.ts:31

Names of effects emitted (in declared order) on a successful transition.


event

event: string;

Defined in: shared/lifecycle/types/machine.ts:20

The event name that triggers this transition.


from

from: string | string[];

Defined in: shared/lifecycle/types/machine.ts:25

Source state(s). A single state, a list of states, or the wildcard "*" which expands to ALL non-terminal states at compile time.


guards?

optional guards?: string[];

Defined in: shared/lifecycle/types/machine.ts:29

Names of guard predicates (AND-combined) that must pass.


to

to: string;

Defined in: shared/lifecycle/types/machine.ts:27

Destination state.

On this page