Helper to assert that an event is the expected type #2071
VanTanev
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Edit: This is now available as part of https://github.com/VanTanev/xstate-helpers
When we have events on actions, this provides a way to assert and type-narrow the event from all possible events on the machine:
Beta Was this translation helpful? Give feedback.
All reactions