diff --git a/functions/useForm.html b/functions/useForm.html index e9cfe78..dd6a9a4 100644 --- a/functions/useForm.html +++ b/functions/useForm.html @@ -44,7 +44,7 @@

Returns UseFormReturn<T>

+
  • Defined in use-form.ts:22
  • +
  • Defined in types.ts:253
  • +
  • Defined in types.ts:317
  • required: string
    @@ -77,7 +77,7 @@

    See

    FieldOptions.required for defining a field as required

    +
  • Defined in types.ts:303
  • +
  • Defined in types.ts:154
  • minLength?: number
    @@ -85,7 +85,7 @@ be provided in UseFormReturn.errors.

    To provide a custom error message, use errorMessages.

    +
  • Defined in types.ts:144
  • onBlur?: ((event: ChangeEvent, value: T[K]) => void)
    @@ -113,7 +113,7 @@ be provided in UseFormReturn.errors.

    Returns void

    +
  • Defined in types.ts:225
  • onChange?: ((event: ChangeEvent, value: T[K]) => void)
    @@ -141,7 +141,7 @@ be provided in UseFormReturn.errors.

    Returns void

    +
  • Defined in types.ts:213
  • parse?: ((value: string) => T[K])
    @@ -168,7 +168,7 @@ placed here.

    Returns T[K]

    +
  • Defined in types.ts:201
  • pattern?: string | RegExp
    @@ -177,7 +177,7 @@ placed here.

    error for a pattern, use validate instead.

    +
  • Defined in types.ts:162
  • required?: boolean
    @@ -187,7 +187,7 @@ error for a pattern, use validate inste

    To provide a custom error message, use errorMessages.

    +
  • Defined in types.ts:134
  • validate?: ((value: T[K]) => string)
    @@ -219,7 +219,7 @@ error for a pattern, use validate inste

    Returns string

    +
  • Defined in types.ts:189
  • +
  • Defined in types.ts:27
  • initialState?: Partial<T>
    @@ -81,7 +81,7 @@ Any missing field will be empty.

    +
  • Defined in types.ts:11
  • onSubmit?: ((values: T, e: FormEvent<HTMLFormElement>) => void)
    @@ -103,7 +103,7 @@ Any missing field will be empty.

    e: FormEvent<HTMLFormElement>

    Returns void

    +
  • Defined in types.ts:16
  • Returns FieldReturn<E>

    +
  • Defined in types.ts:60
  • handleSubmit: ((e: FormEvent<HTMLFormElement>) => void)
    @@ -126,21 +126,21 @@ You should inject this into the form's onSubmit prop.

    Returns void

    +
  • Defined in types.ts:93
  • isValid: boolean

    Indicates whether the form is valid.

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

    The current form data, before parsing.

    +
  • Defined in types.ts:80
  • setValue: (<K>(key: K, value: T[K]) => void)
    @@ -173,7 +173,7 @@ You should inject this into the form's onSubmit prop.

    Returns void

    +
  • Defined in types.ts:110
  • setValues: ((values: Partial<T>) => void)
    @@ -197,14 +197,14 @@ You should inject this into the form's onSubmit prop.

    Returns void

    +
  • Defined in types.ts:101
  • state: Partial<T>

    The current form data, after parsing.

    +
  • Defined in types.ts:75
  • Methods

    @@ -223,7 +223,7 @@ You should inject this into the form's onSubmit prop.

    Returns boolean

    +
  • Defined in types.ts:119