Skip to content

Commit

Permalink
hapijs#2963 make return value of validate match type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanMeijer committed Jul 5, 2023
1 parent 7ead57a commit 461f09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ declare namespace Joi {
}

type ValidationResult<TSchema = any> = {
error: undefined;
error: any;
warning?: ValidationError;
value: TSchema;
} | {
Expand Down

0 comments on commit 461f09d

Please sign in to comment.