-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
oneOfType([Array, any()])
throws error at prop validation
#140
Comments
Ok found out that |
@victorgarciaesgi no problem. I am not sure if it could help in your scenario, but there was a topic about nullable props some time ago (see #16). Validations involving |
You're right that's exactly the same as putting |
Just for reference, there's an open issue about nullable props in vue3 repo as well: vuejs/core#3948. Looking at the source for props validation using About casting any, it seems a good idea. I'll take some time tomorrow to think about any side effect it might cause though. |
I published v4.1.0 which should fix this issue. Closing for now. Feel free to open a new issue if you experience any problems. |
Hi it's me again! :D
I'm translating all my props to vue-types, and came accross a bug with
oneOfType
.Before:
So in
vue-types
:And I got this errors :(
The text was updated successfully, but these errors were encountered: