TCMiranda/joi-extract-type

Export the extracted type from Joi's validation methods

Closed this issue · 1 comments

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])

Is not possible to type guard with assert.
Discussion: microsoft/TypeScript#8655
WIP Solution: microsoft/TypeScript#10421