Adds a begin action for this event handler.
Begin actions run before any transition for the event is evaluated. Multiple begin actions are allowed and run in declaration order.
See FsmBeginAction for the action function type signature.
Declares an internal transition.
The machine remains in the current state; state exit and entry actions do not run. The optional body receives a FsmTransitionActionsBuilder for declaring transition actions.
Optionalbody: (t: FsmTransitionActionsBuilder<State, Events, Context, K>) => voidDeclares an external transition to target.
The optional body receives a FsmTransitionActionsBuilder for declaring transition actions.
If target is the current state, the machine still performs an external
transition: exit actions run, then transition actions, then entry actions.
Starts a guarded transition.
Returns a FsmGuardedTransitionBuilder that allows additional guards to be chained before the final transition is declared.
See FsmGuard for the guard function type signature.
Builder used to define handling for a particular event within a state or fallback.
Supports begin actions, guarded transitions, and unguarded transitions.