mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Joi: change any.when options - is: parameter to type any
This commit is contained in:
+1
-1
@@ -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};
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user