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

issue #2606: pass TSchema from ObjectSchema to .validate function #2703

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

pappaschris
Copy link
Contributor

improves typings for the .validate function so that if a type is passed when calling .object() it also makes its way to .validate().value

@njbmartin
Copy link

I had also done something similar, so would be great to see this merged in

@hueniverse hueniverse self-assigned this Dec 1, 2021
@hueniverse hueniverse added the types TypeScript type definitions label Dec 1, 2021
@hueniverse hueniverse added this to the 17.5.0 milestone Dec 1, 2021
@hueniverse hueniverse merged commit e92e400 into hapijs:master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types TypeScript type definitions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants