From beac40361eb1b604bdb31b9195a4d6d0ef51e5ae Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 7 Mar 2024 10:10:16 -0500 Subject: [PATCH] fix value type on validation result --- lib/index.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 9ac691f3..2d1a0476 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -722,13 +722,9 @@ declare namespace Joi { } type ValidationResult = { - error: undefined; + error?: ValidationError; warning?: ValidationError; value: TSchema; - } | { - error: ValidationError; - warning?: ValidationError; - value: any; } interface CreateErrorOptions {