vuelidate / vuelidate

Simple, lightweight model-based validation for Vue.js

Home Page:https://vuelidate-next.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: base-validation type is inferred to undefined

tada5hi opened this issue · comments

The bug is, that the type of BaseValidation<T,V> is inferred by typescript to undefined, if V is undefined. The interesection type of BaseValidation must slightly be modified.
The generic argument Vrules must not be checked for undefined, due the fact that it is still valid without and ExtractedRulesResult already accepts the Vrules argument to be defined as undefined.