mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add missing property message and optional params into the ValidationError interface
This commit is contained in:
Vendored
+3
-1
@@ -206,6 +206,7 @@ export interface SchemaDescription {
|
||||
|
||||
export interface ValidationError {
|
||||
name: string;
|
||||
message: string;
|
||||
value: any;
|
||||
/**
|
||||
* A string, indicating where there error was thrown. path is empty at the root level.
|
||||
@@ -220,7 +221,8 @@ export interface ValidationError {
|
||||
/**
|
||||
* In the case of aggregate errors, inner is an array of ValidationErrors throw earlier in the validation chain.
|
||||
*/
|
||||
inner?: ValidationError[];
|
||||
inner: ValidationError[];
|
||||
params?: object;
|
||||
}
|
||||
|
||||
export interface Ref {
|
||||
|
||||
Reference in New Issue
Block a user