BUG: base-validation type is inferred to undefined
tada5hi opened this issue · comments
Peter commented
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.