Unnamed union with named members on the model level #7124
-
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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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
foo
as a union of the 2 variants and spread the common properties