Performs a sync transition from the current state to the new state without checking if it is possible. Events ans hooks of involved states will be invoked.
If during the evaluation of the transition an async hook is found an error is thrown. In order transit in presence of async (Promise) hooks, use gotoAsync() instead.
The new state
Initialize the machine and transit to the initial state invoking all registered hooks handlers
Performs a sync transition from the current state to the target state.
If during the evaluation of the transition an async hook is found an error is thrown. In order transit in presence of async (Promise) hooks, use transitAsync() instead.
The new state
Performs a sync transition from the current state to the first applicable state of the transition with the specified name.
If multiple transition have the same name, the first applicable state is is picked up traversing transitions in order of declaration.
If the transition has an array in "to" the first applicable state is is picked up.
If during the evaluation of the transition an async hook is found an error is thrown. In order transit in presence of async (Promise) hooks, use transitByNameAsync() instead.
Generated using TypeDoc
The public APIs of the ISyncStateMachine