Skip to content

Commit 99b5676

Browse files
sm-janettekibertoadkobik
authored
Fix errorFormatter type (#139)
Co-authored-by: Igor Savin <[email protected]> Co-authored-by: Kobi Carmeli <[email protected]>
1 parent 71de434 commit 99b5676

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface ajvValidatorOptions {
6060
ajvConfigParams?: object;
6161
beautifyErrors?: boolean;
6262
contentTypeValidation?: boolean;
63-
errorFormatter?: (errors: ErrorDetails, options: ajvValidatorOptions) => Error;
63+
errorFormatter?: (errors: Array<ErrorDetails>, options: ajvValidatorOptions) => Error;
6464
expectFormFieldsInBody?: boolean;
6565
firstError?: boolean;
6666
framework?: frameworks;

0 commit comments

Comments
 (0)