Skip to content

transitionOrThrow

transitionOrThrow<State, Event>(machine, state, event): State

Defined in: packages/core/src/state-machine/index.ts:76

The next state, or an IllegalTransitionError when the edge is missing.

State extends string

Event extends string

StateMachineTable<State, Event>

State

Event

State