Skip to content

Can we get inferred types that know the values of a union of literals? #922

Closed Answered by brandonpittman
brandonpittman asked this question in Q&A
Discussion options

You must be logged in to vote

Turns out if I manually add each literal value instead of generating them, the inferred types have real unions.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fabian-hiller
Comment options

@brandonpittman
Comment options

Answer selected by brandonpittman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants