solid-hook-form 1.9.0 → 1.9.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/dist/main.d.ts CHANGED
@@ -85,6 +85,10 @@ type CreateFormArg<F extends FormValues> = {
85
85
  };
86
86
  type CreateFormReturn<F extends FormValues = FormValues> = {
87
87
  control: Control<F>;
88
+ formState: {
89
+ errors: Accessor<FieldErrors<F>>;
90
+ isValid: Accessor<boolean>;
91
+ };
88
92
  values: Accessor<F>;
89
93
  errors: Accessor<FieldErrors<F>>;
90
94
  isValid: Accessor<boolean>;
package/dist/main.js CHANGED
@@ -361,6 +361,10 @@ var createForm = (arg = { defaultValues: {} }) => {
361
361
  };
362
362
  return {
363
363
  control,
364
+ formState: {
365
+ errors,
366
+ isValid
367
+ },
364
368
  values,
365
369
  errors,
366
370
  isValid,
package/dist/main.jsx CHANGED
@@ -362,6 +362,10 @@ var createForm = (arg = { defaultValues: {} }) => {
362
362
  };
363
363
  return {
364
364
  control,
365
+ formState: {
366
+ errors,
367
+ isValid
368
+ },
365
369
  values,
366
370
  errors,
367
371
  isValid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-hook-form",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "type": "module",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",