Skip to content

Commit

Permalink
fix: offer an all export with simplified typings closes #4766
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Jun 3, 2024
1 parent 39b22f5 commit fdb2d47
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-glasses-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vee-validate/rules": patch
---

fix: offer an all export with simplified typings closes #4766
31 changes: 31 additions & 0 deletions packages/rules/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,37 @@ import required from './required';
import size from './size';
import url from './url';
import { toTypedSchema } from './toTypedSchema';
import { SimpleValidationRuleFunction } from 'packages/shared';

export const all: Record<string, SimpleValidationRuleFunction<any, any>> = {
alpha_dash,
alpha_num,
alpha_spaces,
alpha,
between,
confirmed,
digits,
dimensions,
email,
ext,
image,
integer,
is_not,
is,
length,
max_value,
max,
mimes,
min_value,
min,
not_one_of,
numeric,
one_of,
regex,
required,
size,
url,
};

export {
alpha_dash,
Expand Down

0 comments on commit fdb2d47

Please sign in to comment.