From 4353655b2f29f556363da1f09ab9cfeea850ec3e Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 3 Mar 2019 03:07:37 +0500 Subject: [PATCH] feat(ObjectValidationError): add TS support --- src/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index 9eac2c2..82b5f88 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -12,6 +12,14 @@ export declare class ValidationError { ); } +export declare class ObjectValidationError extends ValidationError { + constructor( + valueName: string, + value: unknown, + errors: ReadonlyArray, + ); +} + export declare class ArrayValidationError extends ValidationError { constructor( valueName: string,