File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 5
5
6
6
Vue composition function for form validation. The word _ validierung_ is the german translation for validation.
7
7
8
- - 🌌 Written in TypeScript
9
- - ☄️ Asynchronous rules
10
- - 🌊 Dynamic forms
11
- - 🌳 [ Vue 2.7] ( https://v2.vuejs.org/ ) and [ Vue 3] ( https://vuejs.org/ )
8
+ - 🌌 ** Written in TypeScript**
9
+ - ☄️ ** Asynchronous rules**
10
+ - 🌊 ** Dynamic forms**
11
+ - 🌳 ** [ Vue 2.7] ( https://v2.vuejs.org/ ) and [ Vue 3] ( https://vuejs.org/ ) **
12
12
13
13
``` bash
14
14
npm install validierung
15
15
```
16
16
17
- - [ ** Documentation** ] ( https://github.com/JensDll/validierung/wiki/Documentation )
18
- - [ ** Vue 2 Example** ] ( https://stackblitz.com/github/JensDll/validierung/tree/main/playground/vue2?file=src%2Fmain.ts )
19
- - [ ** Vue 3 Example** ] ( https://stackblitz.com/github/JensDll/validierung/tree/main/playground/vue3?file=src%2Fmain.ts )
17
+ [ ** :arrow_right : Documentation** ] ( https://github.com/JensDll/validierung/wiki/Documentation )
18
+
19
+ [ ** :arrow_right : Vue 2 Example** ] ( https://stackblitz.com/github/JensDll/validierung/tree/main/playground/vue2?file=src%2Fmain.ts )
20
+
21
+ [ ** :arrow_right : Vue 3 Example** ] ( https://stackblitz.com/github/JensDll/validierung/tree/main/playground/vue3?file=src%2Fmain.ts )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " validierung" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " Vue composition function for form validation" ,
5
5
"license" : " MIT" ,
6
6
"author" : {
Original file line number Diff line number Diff line change @@ -200,11 +200,10 @@ export type UseValidation<FormData extends object> = {
200
200
*/
201
201
resetFields ( formData ?: DeepPartial < ResultFormData < FormData > > ) : void
202
202
/**
203
- * Adds a new property to the form data.
204
- * Fields with a `$value` property are transformed.
203
+ * Adds a new value to the form data.
205
204
*
206
- * @param path - A path of `string` and `numbers`
207
- * @param value - The value to add at the specified path
205
+ * @param path - A path for the new value
206
+ * @param value - The value to add
208
207
*/
209
208
add < Keys extends readonly ( string | number ) [ ] > (
210
209
path : readonly [ ...Keys ] ,
@@ -213,9 +212,9 @@ export type UseValidation<FormData extends object> = {
213
212
: DeepIndex < FormData , Keys >
214
213
) : void
215
214
/**
216
- * Removes a property from the form data.
215
+ * Removes a value from the form data.
217
216
*
218
- * @param path - A path of `string` and `numbers` to the property to remove
217
+ * @param path - A path to the value to remove
219
218
*/
220
219
remove ( path : ( string | number ) [ ] ) : void
221
220
}
You can’t perform that action at this time.
0 commit comments