Interface FormState<TFormValues>

interface FormState<TFormValues> {
    formErrors: Partial<Record<keyof TFormValues, string>>;
    formValues: TFormValues;
}

Type Parameters

  • TFormValues

Properties

formErrors: Partial<Record<keyof TFormValues, string>>

Stores error messages for each form field

formValues: TFormValues

Stores current values of form inputs