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

feat: Make Joi.Schema generic #2551

Merged
merged 1 commit into from Feb 7, 2021
Merged

feat: Make Joi.Schema generic #2551

merged 1 commit into from Feb 7, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jan 29, 2021

I want to make Schema type generic in order to improve typing

  • Change is seamless from a typescript point of view. It isn't breaking anything.
  • Allows type inference from Joi types

Motivation comes from this issue :
arb/celebrate#212

I know it is not directly related to Joi, but with this change it can allow any package using Joi to have better type inferences.

@hueniverse hueniverse merged commit 29b1b93 into hapijs:master Feb 7, 2021
@hueniverse hueniverse self-assigned this Feb 7, 2021
@hueniverse hueniverse added the types TypeScript type definitions label Feb 7, 2021
@hueniverse hueniverse added this to the 17.3.1 milestone Feb 7, 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.

None yet

1 participant