TCMiranda/joi-extract-type

Infer union from Joi.when

Closed this issue · 1 comments

It may be possible to infer A | B from .when('...', { is: X, then: A, otherwise: B }).
From: hapijs/joi#1557 (comment)

Close with #14