diff --git a/functions/useForm.html b/functions/useForm.html
index 90cb319..b9c51d2 100644
--- a/functions/useForm.html
+++ b/functions/useForm.html
@@ -33,7 +33,7 @@
+Defined in use-form.ts:14
+Defined in types.ts:156
+Defined in types.ts:209
pattern
pattern: string | ((pattern: string | RegExp) => string)
@@ -70,7 +70,7 @@
+Defined in types.ts:231
required
required: string
@@ -78,7 +78,7 @@
Default: "Required"
+Defined in types.ts:198
+Defined in types.ts:98
Optional onChange
@@ -94,7 +94,7 @@ Use this callback instead, which acts right after the input's onChange
value: T[K]
Returns void
+Defined in types.ts:144
Optional parse
parse?: ((value: string) => T[K])
@@ -116,7 +116,7 @@ to be updated with the result of this function.
value: string
Returns T[K]
+Defined in types.ts:136
Optional pattern
pattern?: string | RegExp
@@ -125,7 +125,7 @@ to be updated with the result of this function.
To cause a validation error for a pattern, use validate instead.
+Defined in types.ts:114
Optional required
required?: boolean
@@ -134,7 +134,7 @@ To cause a validation error for a pattern, use validate instead.errors.
+Defined in types.ts:90
Optional validate
validate?: ((value: T[K]) => string)
@@ -156,7 +156,7 @@ To cause a validation error for a pattern, use validate instead.value: T[K]
Returns string
+Defined in types.ts:128
+Defined in types.ts:20
Optional initialState
initialState?: Partial<T>
@@ -69,7 +69,7 @@
Any missing field will be empty.
+Defined in types.ts:9
Optional onSubmit
onSubmit?: ((values: T, e: FormEvent<HTMLFormElement>) => void)
@@ -91,7 +91,7 @@ Any missing field will be empty.
e: FormEvent<HTMLFormElement>
Returns void
+Defined in types.ts:14
+Defined in types.ts:41
handleSubmit
handleSubmit: ((e: FormEvent<HTMLFormElement>) => void)
@@ -103,21 +103,21 @@ You should inject this into the form's onSubmit prop.
e: FormEvent<HTMLFormElement>
Returns void
+Defined in types.ts:70
+Defined in types.ts:64
rawState
rawState: Partial<Record<keyof T, string | number | string[]>>
+Defined in types.ts:59
setValue
setValue: (<K>(key: K, value: T[K]) => void)
@@ -144,7 +144,7 @@ You should inject this into the form's onSubmit prop.
value: T[K]
Returns void
+Defined in types.ts:80
setValues
setValues: ((values: Partial<T>) => void)
@@ -164,14 +164,14 @@ You should inject this into the form's onSubmit prop.
values: Partial<T>
Returns void
+Defined in types.ts:75
+Defined in types.ts:54
+Defined in types.ts:187
+Defined in types.ts:182
+Defined in types.ts:161
The error message for the field.