mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Vendored
+4
-3
@@ -121,10 +121,10 @@ export interface IPOptions {
|
||||
}
|
||||
|
||||
export interface ValidationError extends Error {
|
||||
message: string;
|
||||
isJoi: boolean;
|
||||
details: ValidationErrorItem[];
|
||||
simple(): string;
|
||||
annotated(): string;
|
||||
annotate(): string;
|
||||
_object: any;
|
||||
}
|
||||
|
||||
export interface ValidationErrorItem {
|
||||
@@ -132,6 +132,7 @@ export interface ValidationErrorItem {
|
||||
type: string;
|
||||
path: string;
|
||||
options?: ValidationOptions;
|
||||
context?: any;
|
||||
}
|
||||
|
||||
export interface ValidationResult<T> {
|
||||
|
||||
+2
-1
@@ -125,7 +125,8 @@ validErrItem = {
|
||||
message: str,
|
||||
type: str,
|
||||
path: str,
|
||||
options: validOpts
|
||||
options: validOpts,
|
||||
context: obj
|
||||
};
|
||||
|
||||
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
||||
|
||||
Reference in New Issue
Block a user