From b53e5853d88763b3de57be0250f46a55445789f6 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 10 Aug 2023 06:02:47 +0200 Subject: [PATCH] Declare the class ValidatorResultError in types (#331) --- lib/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index aa73d48..30a1502 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -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)[];