hapijs / joi

The most powerful data validation library for JS
Other
20.89k stars 1.51k forks source link

Property 'validate' does not exist on type 'Root'.ts(2339) #2997

Closed cyrus-wg closed 11 months ago

cyrus-wg commented 11 months ago

Support plan

Context

How can we help?

// here task is the validated object and taskSchema is the joi schema
const valition = Joi.validate(task, addVoucherSchema);

VSCode prompted me that Property 'validate' does not exist on type 'Root'.ts(2339)