Decompose a TStatebotChart into an object of states, routes, and transitions.
states
routes
transitions
Statebot() uses this internally to parse charts. Exposed for debugging.
let { states, routes, transitions } = decomposeChart` pending -> success | failure`// states = ['pending', 'success', 'failure']// routes = [ 'pending->success', 'pending->failure']// transitions = [// ['pending', 'success'],// ['pending', 'failure']// ] Copy
let { states, routes, transitions } = decomposeChart` pending -> success | failure`// states = ['pending', 'success', 'failure']// routes = [ 'pending->success', 'pending->failure']// transitions = [// ['pending', 'success'],// ['pending', 'failure']// ]
Decompose a TStatebotChart into an object of
states,routes, andtransitions.Statebot() uses this internally to parse charts. Exposed for debugging.