Given an array of TransitionDefinitions such as those returned by
xstate.createMachine(...).definition.transitions or by
getAllTransitions, categorize the transitions and return
a structure of arrays of each category.
Note: each transition will appear in only one category even though
delayDone and always may overlap.
A delayed always transition will appear in delayDone.
Given an array of
TransitionDefinition
s such as those returned byxstate.createMachine(...).definition.transitions
or by getAllTransitions, categorize the transitions and return a structure of arrays of each category.Note: each transition will appear in only one category even though
delayDone
andalways
may overlap. A delayed always transition will appear indelayDone
.Returns
Categorized transitions.