This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
question: How can I validate a union of strings? #2356
Labels
type: question
Questions about the usage of the library.
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
The text was updated successfully, but these errors were encountered: