Skip to content

Commit

Permalink
Fix Typo in MaxDate comment (#2423)
Browse files Browse the repository at this point in the history
Co-authored-by: Brage Sekse Aarset <brage.aarset@gmail.com>
  • Loading branch information
namandeep-123 and braaar committed Mar 19, 2024
1 parent 795d8ff commit 2ab6618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator/date/MaxDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function maxDate(date: unknown, maxDate: Date | (() => Date)): boolean {
}

/**
* Checks if the value is a date that's after the specified date.
* Checks if the value is a date that's before the specified date.
*/
export function MaxDate(date: Date | (() => Date), validationOptions?: ValidationOptions): PropertyDecorator {
return ValidateBy(
Expand Down

0 comments on commit 2ab6618

Please sign in to comment.