question: How can I validate a union of strings? #2362
Unanswered
stefan-bc-ts
asked this question in
Questions & Answers
Replies: 1 comment
-
I'm moving this to the discussion tab, as we are trying to keep the issue count low. Please see this issue for an explanation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to...
use
export type ValidateValues = ‘val1’ | ‘val2’ | ‘val3’;
with @type to make sure the values are correct
The problem:
PS: I was trying to avoid using a enum
Beta Was this translation helpful? Give feedback.
All reactions