maghis / types-joi

TypeScript types for joi (Object schema description language and validator for JavaScript objects) https://github.com/hapijs/joi
28 stars 4 forks source link

InterfaceFrom returns interface instead of type #2

Closed ghmendonca closed 5 years ago

ghmendonca commented 5 years ago

Hi, I would like to have interfaces instead of types, because then, I can use them to extends from Hapi.Request and use to validate the requests payloads. Is it possible to do that?

maghis commented 5 years ago

Hey @ghmendonca, I'm not sure what you mean exactly, could you please post a short sample?

Also, InterfaceFrom should already return an inferred interface.