mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
joi: simplify ValidationOptions
This commit is contained in:
Vendored
+1
-1
@@ -31,7 +31,7 @@ export interface ValidationOptions {
|
||||
* - arrays - set to true to remove unknown items from arrays.
|
||||
* - objects - set to true to remove unknown keys from objects
|
||||
*/
|
||||
stripUnknown?: boolean | {arrays: boolean} | {objects: boolean} | {arrays: boolean; objects: boolean};
|
||||
stripUnknown?: boolean | { arrays?: boolean; objects?: boolean };
|
||||
/**
|
||||
* overrides individual error messages. Defaults to no override ({}).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user