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 @@
__namedParameters: UseFormOptions<T> = {}

Returns UseFormReturn<T>

+
  • Defined in use-form.ts:14
  • +
  • Defined in types.ts:156
  • +
  • Defined in types.ts:209
  • pattern: string | ((pattern: string | RegExp) => string)
    @@ -70,7 +70,7 @@
    +
  • Defined in types.ts:231
  • required: string
    @@ -78,7 +78,7 @@

    Default: "Required"

    +
  • Defined in types.ts:198
  • +
  • Defined in types.ts:98
  • onChange?: ((event: ChangeEvent, value: T[K]) => void)
    @@ -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
  • 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
  • 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
  • required?: boolean
    @@ -134,7 +134,7 @@ To cause a validation error for a pattern, use validate instead.

    errors
    .

    +
  • Defined in types.ts:90
  • 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
  • initialState?: Partial<T>
    @@ -69,7 +69,7 @@ Any missing field will be empty.

    +
  • Defined in types.ts:9
  • 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
  • Returns FieldReturn<E>

    +
  • Defined in types.ts:41
  • 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
  • isValid: boolean

    Indicates whether the form is valid.

    +
  • Defined in types.ts:64
  • rawState: Partial<Record<keyof T, string | number | string[]>>

    The current form data, before parsing.

    +
  • Defined in types.ts:59
  • 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: ((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
  • state: Partial<T>

    The current form data, after parsing.

    +
  • Defined in types.ts:54
  • +
  • Defined in types.ts:187
  • +
  • Defined in types.ts:182
  • +
  • Defined in types.ts:161