Skip to content

Commit

Permalink
fix: missing string type in InputValidationError constructor (#177)
Browse files Browse the repository at this point in the history
Include array of strings inside the constructor
  • Loading branch information
NivLipetz committed Feb 8, 2022
1 parent 00ac220 commit afb861b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Expand Up @@ -34,7 +34,7 @@ declare function validate(options: FastifyPluginOptions): any; // fastify
export class InputValidationError extends Error {
errors: Array<ErrorDetails | string>;

constructor(errors: Array<ErrorDetails>, options?: inputValidationOptions)
constructor(errors: Array<ErrorDetails | string>, options?: inputValidationOptions)
}

export interface ErrorDetails {
Expand Down

0 comments on commit afb861b

Please sign in to comment.