Union type for nested states in v5 #5171
Unanswered
schliemannw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, all.
I'm currently migrating from v4 and one thing I do a lot in my application to interact with XState is to generate union types for states in the machine. For instance, having a schema such as:
I could get an union type for
second
state that would be'one' | 'two'
by doing:In v5 it seems you can't define schemas so I was wondering if there is any other way to derive these union types?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions