Skip to content

Commit

Permalink
Fix formatting in JSDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Codycody31 committed Nov 29, 2023
1 parent f850a2c commit 42b61ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class Validator {
/**
* Validates the input against the defined rules.
* @param {any} input - The input to validate.
* @returns {Promise<boolean>} - True if validation passes, false otherwise.
* @returns {Promise<boolean>} True if validation passes, false otherwise.
*/
async validate(input: any): Promise<boolean> {
// Ensure input is an object
Expand Down Expand Up @@ -330,15 +330,15 @@ export default class Validator {

/**
* Get the current validation errors.
* @returns {{ [key: string]: string }} - The current errors.
* @returns {{ [key: string]: string }} The current errors.
*/
getErrors(): { [key: string]: string } {
return this.errors;
}

/**
* Get the fields that passed validation.
* @returns {{ [key: string]: any }} - The fields that passed.
* @returns {{ [key: string]: any }} The fields that passed.
*/
getPassedFields(): { [key: string]: any } {
return this.passed;
Expand Down

0 comments on commit 42b61ea

Please sign in to comment.