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
['foo', 'bar'] as const
t.isEnum accepts an array, not a readonly array, so the following raises a type error:
t.isEnum
const possible = ['foo', 'bar'] as const; t.isEnum(possible);
The text was updated successfully, but these errors were encountered:
Allow readonly arrays in isEnum and isOneOf, fixes arcanis#7
58d92dd
9e2f8bd
No branches or pull requests
t.isEnum
accepts an array, not a readonly array, so the following raises a type error:The text was updated successfully, but these errors were encountered: