Skip to content

feat: Make Joi.Schema generic#2551

Merged
hueniverse merged 1 commit intomasterfrom
unknown repository
Feb 7, 2021
Merged

feat: Make Joi.Schema generic#2551
hueniverse merged 1 commit intomasterfrom
unknown repository

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.

1 participant