TCMiranda / joi-extract-type

Provides native type extraction from Joi schemas for Typescript
MIT License
151 stars 27 forks source link

Export the extracted type from Joi's validation methods #4

Closed TCMiranda closed 5 years ago

TCMiranda commented 5 years ago

Validation methods We could export the extracted type from these methods:

TCMiranda commented 5 years ago

Is not possible to type guard with assert. Discussion: https://github.com/Microsoft/TypeScript/issues/8655 WIP Solution: https://github.com/Microsoft/TypeScript/issues/10421