Skip to content
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

BUG: base-validation type is inferred to undefined #1241

Open
tada5hi opened this issue Apr 22, 2024 · 0 comments · May be fixed by #1242
Open

BUG: base-validation type is inferred to undefined #1241

tada5hi opened this issue Apr 22, 2024 · 0 comments · May be fixed by #1242

Comments

@tada5hi
Copy link

tada5hi commented Apr 22, 2024

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.

@tada5hi tada5hi linked a pull request Apr 22, 2024 that will close this issue
14 tasks
@tada5hi tada5hi changed the title BUG: BaseValidation is inferred to undefined BUG: base-validation type is inferred to undefined Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant