Allow strongly typing actions in Typegen #3546
Unanswered
martijnarts
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See also: https://discord.com/channels/795785288994652170/964616059653087283/964616062324834384
The basic idea:
I'm basically asking to apply the same type checking done on
events
toactions
. This way the typing defends against incorrectly spelled actions, or accidentally forgetting to define actions. Additionally, it brings autocomplete to action names!This came up for me, because one way I like to write out a state object is by first defining and refining the
states
tree, including the entry/transition/exit actions, and then writing out the actual actions and iterating on the states definition. It's very easy to forget to code out all required actions then.This is mentioned here, but I felt it deserved its own thread.
Beta Was this translation helpful? Give feedback.
All reactions