Skip to content

Commit

Permalink
Declare the class ValidatorResultError in types (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing authored Aug 10, 2023
1 parent 5e219db commit b53e585
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export declare class ValidatorResult {
toString(): string;
}

export declare class ValidatorResultError extends Error {
instance: any;
schema: Schema;
options: Options;
errors: ValidationError;
}

export declare class ValidationError {
constructor(message?: string, instance?: any, schema?: Schema, propertyPath?: any, name?: string, argument?: any);
path: (string|number)[];
Expand Down

0 comments on commit b53e585

Please sign in to comment.