Skip to content

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

Merged
hueniverse merged 1 commit intohapijs:masterfrom
pappaschris:improve_validate_typings
Dec 1, 2021
Merged

issue #2606: pass TSchema from ObjectSchema to .validate function#2703
hueniverse merged 1 commit intohapijs:masterfrom
pappaschris:improve_validate_typings

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