txstate
txstate copied to clipboard
An effort to statically type xstate
- [ ] 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...
(incomplete list) - [ ] `createMachine` - [x] `MachineDefinition` - [x] #12 - [x] #32 - [x] #33 - [x] #34 - [x] #35 - [x] #36 - [x] `StateNode`...
Mainly all functional properties turn into `unknown` in the return type, more precisely the return type of `createMachine` is `Machine.Of` instead of `Machine.Of` (even if there are no errors in...
See [here](https://github.com/davidkpiano/xstate/discussions/2323#discussioncomment-899642)