txstate
txstate copied to clipboard
On top of my head / Minor issues
- [ ] txstate right now assumes the machine definition is a literal, in case it's not like
initial: Math.random() > 0.5 > "a" : "b"thing most probably will malfunction, so gotta do something about that - [ ] Make all custom error use
A.CustomError - [ ] Transitions...
- [ ] Support
[{ target: "x" }, "y"]Edit: Ugh isn't this already supported? TODO: check - [ ] Disallow stupid stuff like
- [ ]
{ target: [] } - [ ]
[{ target: "a" /* no guard */ }, { target: "b" }] - [ ]
internal: truefor strictly external transitions - more...
- [ ]
- [ ] Support
- [ ] When an required property is missing the errors are horrible, try showing custom errors for those cases too
- [ ] Guarded recursion. Sometimes in an errored machine the recursion becomes infinite to prevent that we'll recurse with a fixed limit