Repository navigation
Unnamed union with named members on the model level #7124
Answered
by
timotheeguerin
Pawel Kowalik (pawel-kow)
asked this question in
Q&A
|
Hi, I am trying to model the following: I tried the following, but I'm getting "Cannot spread properties of non-model type." I could use Any suggestion how this can be done? |
Answered by
timotheeguerin
Apr 24, 2025
Replies: 1 comment 3 replies
|
this is not possible with the current syntax. Closest you can do is creating |
3 replies
Answer selected by
pawel-kow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is not possible with the current syntax. Closest you can do is creating
fooas a union of the 2 variants and spread the common properties