Skip to content

Commit afb861b

Browse files
authored
fix: missing string type in InputValidationError constructor (#177)
Include array of strings inside the constructor
1 parent 00ac220 commit afb861b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare function validate(options: FastifyPluginOptions): any; // fastify
3434
export class InputValidationError extends Error {
3535
errors: Array<ErrorDetails | string>;
3636

37-
constructor(errors: Array<ErrorDetails>, options?: inputValidationOptions)
37+
constructor(errors: Array<ErrorDetails | string>, options?: inputValidationOptions)
3838
}
3939

4040
export interface ErrorDetails {

0 commit comments

Comments
 (0)