Skip to content

Commit 5f8f73e

Browse files
superliuwrkobik
authored andcommitted
Fix incorrect type of InputValidationError (#94)
The constructor only takes `errors` and `options`.
1 parent c3b9aa5 commit 5f8f73e

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
@@ -19,7 +19,7 @@ export { validate };
1919
export class InputValidationError extends Error {
2020
errors: Array<ErrorDetails | string>;
2121

22-
constructor(errors: Array<ErrorDetails>, path?: string, method?: string, options?: inputValidationOptions)
22+
constructor(errors: Array<ErrorDetails>, options?: inputValidationOptions)
2323
}
2424

2525
export interface ErrorDetails {

0 commit comments

Comments
 (0)