Skip to content
Discussion options

You must be logged in to vote

this is not possible with the current syntax. Closest you can do is creating foo as a union of the 2 variants and spread the common properties

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pawel-kow
Comment options

@timotheeguerin
Comment options

@pawel-kow
Comment options

Answer selected by pawel-kow
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