Export the extracted type from Joi's validation methods
Closed this issue · 1 comments
TCMiranda commented
Validation methods
We could export the extracted type from these methods:
- validate(value, schema, [options], [callback])
- assert(value, schema, [message])
- attempt(value, schema, [message])
- any.validate(value, [options], [callback])
TCMiranda commented
Is not possible to type guard with assert
.
Discussion: microsoft/TypeScript#8655
WIP Solution: microsoft/TypeScript#10421