Skip to content

Commit fdb2d47

Browse files
committed
fix: offer an all export with simplified typings closes #4766
1 parent 39b22f5 commit fdb2d47

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.changeset/curvy-glasses-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vee-validate/rules": patch
3+
---
4+
5+
fix: offer an all export with simplified typings closes #4766

packages/rules/src/index.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,37 @@ import required from './required';
2626
import size from './size';
2727
import url from './url';
2828
import { toTypedSchema } from './toTypedSchema';
29+
import { SimpleValidationRuleFunction } from 'packages/shared';
30+
31+
export const all: Record<string, SimpleValidationRuleFunction<any, any>> = {
32+
alpha_dash,
33+
alpha_num,
34+
alpha_spaces,
35+
alpha,
36+
between,
37+
confirmed,
38+
digits,
39+
dimensions,
40+
email,
41+
ext,
42+
image,
43+
integer,
44+
is_not,
45+
is,
46+
length,
47+
max_value,
48+
max,
49+
mimes,
50+
min_value,
51+
min,
52+
not_one_of,
53+
numeric,
54+
one_of,
55+
regex,
56+
required,
57+
size,
58+
url,
59+
};
2960

3061
export {
3162
alpha_dash,

0 commit comments

Comments
 (0)