From d63907bbe43b2f144e088692ac662afb5d81f676 Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 3 Mar 2019 02:24:28 +0500 Subject: [PATCH] feat(ArrayValidationError): 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 d020cdf..ffa234c 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -11,3 +11,11 @@ export declare class ValidationError { nested?: ReadonlyArray, ); } + +export declare class ArrayValidationError extends ValidationError { + constructor( + valueName: string, + value: unknown, + errors: ReadonlyArray, + ); +}