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 {