Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.78/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