-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Registering @vee-validate/rules in typescript produces typing errors #4766
Labels
👕 TypeScript
TypeScript typings issue
Comments
The issue seems to be because At the same time fixing that would result in a too complex type error due to the union and argument sizes being different. I will export an Something like this: import { all } from '@vee-validate/rules';
Object.entries(all).forEach(([name, rule]) => {
defineRule(name, rule);
}); |
This was referenced Jun 26, 2024
This was referenced Sep 12, 2024
This was referenced Sep 20, 2024
This was referenced Oct 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
There are typing errors when registering the rules from
@vee-validate/rules
into vee-validate:The error:
Reproduction steps
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: