mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add support for joi schema type
This commit is contained in:
Vendored
+5
@@ -792,6 +792,11 @@ export interface ObjectSchema extends AnySchema {
|
||||
*/
|
||||
length(limit: number): this;
|
||||
|
||||
/**
|
||||
* Requires the object to be a Joi schema instance.
|
||||
*/
|
||||
schema(): this;
|
||||
|
||||
/**
|
||||
* Specify validation rules for unknown keys matching a pattern.
|
||||
*
|
||||
|
||||
@@ -706,6 +706,8 @@ objSchema = objSchema.nand(str, str);
|
||||
objSchema = objSchema.nand(str, str, str);
|
||||
objSchema = objSchema.nand(strArr);
|
||||
|
||||
objSchema = objSchema.schema();
|
||||
|
||||
objSchema = objSchema.or(str);
|
||||
objSchema = objSchema.or(str, str);
|
||||
objSchema = objSchema.or(str, str, str);
|
||||
|
||||
Reference in New Issue
Block a user