diff --git a/joi/joi-tests.ts b/joi/joi-tests.ts index 82d661db52..4eea606a6e 100644 --- a/joi/joi-tests.ts +++ b/joi/joi-tests.ts @@ -99,7 +99,7 @@ uriOpts = {scheme: expArr}; var whenOpts: Joi.WhenOptions = null; -whenOpts = {is: schema}; +whenOpts = {is: x}; whenOpts = {is: schema, then: schema}; whenOpts = {is: schema, otherwise: schema}; diff --git a/joi/joi.d.ts b/joi/joi.d.ts index 0e88419f2d..c5d78dc88e 100644 --- a/joi/joi.d.ts +++ b/joi/joi.d.ts @@ -99,7 +99,7 @@ declare module 'joi' { /** * the required condition joi type. */ - is: Schema; + is: any; /** * the alternative schema type if the condition is true. Required if otherwise is missing. */