solid-hook-form 1.4.2 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/logic/create_errors.d.ts +1 -0
- package/dist/logic/create_fields.d.ts +6 -0
- package/dist/logic/create_rules.d.ts +8 -0
- package/dist/main.js +1371 -108
- package/dist/main.umd.cjs +29 -1
- package/dist/types/errors.d.ts +1 -2
- package/dist/types/path.d.ts +1 -24
- package/dist/use_form.d.ts +3 -3
- package/dist/utils/get.d.ts +1 -0
- package/dist/utils/set.d.ts +1 -0
- package/package.json +2 -1
- package/dist/types/array.d.ts +0 -3
- package/dist/types/utils.d.ts +0 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Solid Hook Form
|
|
2
2
|
|
|
3
|
-
[<img width="
|
|
3
|
+
[<img width="1291" height="834" alt="Screenshot 2025-10-17 at 02 07 00" src="https://github.com/user-attachments/assets/83ec4c9a-60e1-49be-9415-8f8b2df74d53" />](https://tatsmaki.github.io/solid-hook-form)
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://tatsmaki.github.io/solid-hook-form/#/quickstart">Get started</a> |
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormValues } from '../types/form';
|
|
2
|
+
import { Path } from '../types/path';
|
|
3
|
+
import { Rules } from '../types/validate';
|
|
4
|
+
export declare const createRules: <F extends FormValues>() => {
|
|
5
|
+
rules: Record<string, Rules<F, Path<F>>>;
|
|
6
|
+
addRule: (name: string, options: Rules<F, Path<F>>) => void;
|
|
7
|
+
getRule: (name: string) => Rules<F, Path<F>>;
|
|
8
|
+
};
|