Replies: 1 comment
-
Type distribution is now a default. So you don't have to worry about your unions anymore. I recommend that you remove any |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🤔 Question
Describe your question
Union types tend to malfunction when used with recursive types for reasons that are internal to TypeScript and this library. But you can make it work, just distribute your union as needed:
...And if this still doesn't work, then it's probably because the recursive type needs to do this deeply. In that case, you're welcome to open an issue, and I'll bring a
Up
version of that type out.Search tags, topics
#broken #union #recursive
Beta Was this translation helpful? Give feedback.
All reactions