Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/react-hook-form.ts>UseFormClearErrors

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
type alias UseFormClearErrors
import { type UseFormClearErrors } from "https://deno.land/x/netzo@0.4.72/deps/react-hook-form.ts";

Clear the entire form errors.

Examples

Clear all errors

clearErrors(); // clear the entire form error
clearErrors(["name", "name1"]) // clear an array of fields' error
clearErrors("name2"); // clear a single field error

Type Parameters

TFieldValues extends FieldValues
definition: (name?:
| readonly FieldPath<TFieldValues>[]
| `root.${string}`
| "root"
) => void