Is there a way to declare a choice? Like either this or that. #2256
-
Say I want a model to be of this type:
samples:
Now how to refactor the
|
Beta Was this translation helpful? Give feedback.
Answered by
coolsoftwaretyler
Mar 27, 2025
Replies: 1 comment
-
You probably want a union type here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
coolsoftwaretyler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably want a union type here.