Closed dkhunt27 closed 1 year ago
Hi, not much work as been done on .pattern()
as a workaround this should work
const schema = joi.object().pattern(
joi.string(),
joi.string(),
).meta({ className: 'TestType' },{ unknownType: 'string' });
closing due to no response
When using joi object pattern, seems to be outputting that the pattern is unknown in the outputted type/interface
To Reproduce Run the javascript below. Will need to install joi-to-typescript and joi as dependencies of project. I am using
Expected behavior Expect the output to be
Actual behavior actually getting the following