Is it possible to infer nullable type?
Closed this issue · 1 comments
ildukm commented
Hello, thank you for your project.
I was wondering if it's possible to infer nullable type.
const n = Joi.number().required().allow(null);
Joi.extractType<typeof n>; // expect number | null