Joi: change any.when options - is: parameter to type any

This commit is contained in:
Jon Sheppard
2016-03-22 16:15:21 +07:00
parent 6766ed1d0f
commit 965b4bf7c5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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};
+1 -1
View File
@@ -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.
*/