diff --git a/lib/index.d.ts b/lib/index.d.ts index 2eca7ac2..da367a91 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -693,7 +693,7 @@ declare namespace Joi { context?: Context; } - type ValidationErrorFunction = (errors: ErrorReport[]) => string | ValidationErrorItem | Error; + type ValidationErrorFunction = (errors: ErrorReport[]) => string | ValidationErrorItem | Error | ErrorReport[]; interface ValidationWarning { message: string;