Skip to content

Commit

Permalink
Merge pull request #1197 from AngelFQC/patch-1
Browse files Browse the repository at this point in the history
maxValue and minValue accept Date
  • Loading branch information
shentao committed Dec 22, 2023
2 parents 214a23a + 870f889 commit 08aa514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/validators/index.d.ts
Expand Up @@ -25,13 +25,13 @@ export const maxLength: (
max: number | Ref<number>
) => ValidationRuleWithParams<{ max: number }>;
export const maxValue: (
max: number | Ref<number> | string | Ref<string>
max: number | Ref<number> | string | Ref<string> | Date | Ref<Date>
) => ValidationRuleWithParams<{ max: number }>;
export const minLength: (
min: number | Ref<number>
) => ValidationRuleWithParams<{ min: number }>;
export const minValue: (
min: number | Ref<number> | string | Ref<string>
min: number | Ref<number> | string | Ref<string> | Date | Ref<Date>
) => ValidationRuleWithParams<{ min: number }>;
export const not: <T = unknown>(validator: ValidationRule<T>) => ValidationRuleWithoutParams;
export const numeric: ValidationRuleWithoutParams;
Expand Down

0 comments on commit 08aa514

Please sign in to comment.