mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-14 12:30:47 +08:00
Joi: change any.when options - is: parameter to type any
This commit is contained in:
1 parent
6766ed1d0f
commit
965b4bf7c5
2 files changed
+2
-2
No files matched your search
+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