Open BrandonTing opened 7 months ago
This is currently as designed (i.e., not implemented yet).
Hi David,
Thanks for clarification! I believe this will improve DX a ton. Is this feature on the roadmap? Really appreciated.
No problem! That would be a question for @Andarist to see if this is even possible.
XState version
XState version 5
Description
I created the following state machine. However, when I tried declaring a non-existant state
Non exist state
, no type error is generated. (Refer to code snippet)Expected result
Typescript error to be shown for
target: "Non exist state"
Actual result
No type error shown
Reproduction
https://stackblitz.com/edit/github-4b6ck8
Additional context
No response