@modular-forms/preact
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -5,2 +5,3 @@ export * from './clearError'; | ||
export * from './getError'; | ||
export * from './getErrors'; | ||
export * from './getValue'; | ||
@@ -7,0 +8,0 @@ export * from './getValues'; |
@@ -20,3 +20,5 @@ import { batch } from '@preact/signals'; | ||
// Create valid variable | ||
let valid = !Object.keys(formErrors).length; | ||
let valid = typeof arg2 !== 'string' && !Array.isArray(arg2) | ||
? !Object.keys(formErrors).length | ||
: true; | ||
const [errorFields] = await Promise.all([ | ||
@@ -23,0 +25,0 @@ // Validate each field in list |
@@ -5,2 +5,3 @@ export * from './clearError'; | ||
export * from './getError'; | ||
export * from './getErrors'; | ||
export * from './getValue'; | ||
@@ -7,0 +8,0 @@ export * from './getValues'; |
@@ -31,4 +31,2 @@ import type { Signal } from '@preact/signals'; | ||
[name in FieldPath<TFieldValues> | FieldArrayPath<TFieldValues>]?: Maybe<string>; | ||
} & { | ||
[name: string]: string; | ||
}; | ||
@@ -35,0 +33,0 @@ /** |
{ | ||
"name": "@modular-forms/preact", | ||
"description": "The modular and type-safe form library for Preact", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Fabian Hiller", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
270968
176
7100