Skip to content

Commit

Permalink
Update error message type in Validator constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Codycody31 committed Nov 22, 2023
1 parent b1666c8 commit 1b489fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Validator {
/**
* Creates an instance of the Validator class.
* @param {{ [key: string]: Rule }} rules - The validation rules for each field.
* @param {{ [key: string]: message }} messages - The error messages for each rule.
* @param {{ [key: string]: Message }} messages - The error messages for each rule.
* @param {Options} [options] - Additional options for validation.
*/
constructor(rules = {}, messages = {}, options = {}) {
Expand Down

0 comments on commit 1b489fb

Please sign in to comment.