Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UseFormTrigger

Trigger field or form validation

@example
useEffect(() => {
  trigger();
}, [trigger])

<button onClick={async () => {
  const result = await trigger(); // result will be a boolean value
}}>
 trigger
 </button>
type UseFormTrigger<TFieldValues extends FieldValues> = (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[], options?: TriggerConfig) => Promise<boolean>;

§Type Parameters

§
TFieldValues extends FieldValues
[src]

§Type

§
(name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[], options?: TriggerConfig) => Promise<boolean>
[src]