Marks a steps relation between two states during the transition.
Marks a steps relation between two states during the transition.
Same as addStep, but produces a step for many targets.
Returns the subset of states which block the state name.
Produces a readable list of steps states.
Example:
A REQUESTED
D REQUESTED
A SET
D SET
D -> B RELATION add
D -> C RELATION add
B SET
C SET
E -> D RELATION drop
E DROP
TODO loose casts once condition guards work again
Generated using TypeDoc
The Transition class is responsible for encapsulating a single mutation for a single machine. In can be created by a different machine than it's mutating. End users usually don't have to deal with it at all, as the most important data it carries for them is exposed as
instance.to()
andinstance.from()
methods and it's events are also emitted on the machine itself.