From 965b4bf7c511d787aff29acb499cb313996af1d5 Mon Sep 17 00:00:00 2001 From: Jon Sheppard Date: Tue, 22 Mar 2016 16:15:21 +0700 Subject: [PATCH] Joi: change any.when options - is: parameter to type any --- joi/joi-tests.ts | 2 +- joi/joi.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. */