We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would expect TS compiler to warn me when defining e.g.:
choice = Option.String("--choice", "d", { description: "Choice option", validator: t.isEnum(["a", "b", "c"] as const), });
that "d" does not pass validation, resulting in this error during runtime:
"d"
Usage Error: Invalid value for choice: expected one of "a", "b", or "c" (got "d"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would expect TS compiler to warn me when defining e.g.:
that
"d"
does not pass validation, resulting in this error during runtime:The text was updated successfully, but these errors were encountered: