const schema = { userId: Joi.string() }; const {error, value} = Joi.validate({ userId: 'a string' }, schema);. 我們使用Typescript 是希望得到明確的型別定義, ...
確定! 回上一頁