Implement Joi in Typescript
问题 Simple joi validation snippet in javascript.It will simply return an error object when validation fails. validate.js const Joi =require("joi"); function validateObject (input) { const schema = { key: Joi.string().required(), }; return Joi.validate(input, schema); }; let {error} = validateObject({key:5}) console.log(error) Now I am learning typescript and like to do the exact functionality in TS.I am aware that Joi is a javascript library but can we make use of it in Typescript.When exploring