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

UseFieldArrayUpdate

Update field/fields at particular position.

@example
<button type="button" onClick={() => update(1, { name: "data" })}>Update</button>
<button
  type="button"
  onClick={() => update(1, [{ name: "data" }, { name: "data" }])}
>
  Update
</button>
type UseFieldArrayUpdate<TFieldValues extends FieldValues, TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>> = (index: number, value: FieldArray<TFieldValues, TFieldArrayName>) => void;

§Type Parameters

§
TFieldValues extends FieldValues
[src]
§
TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>
[src]

§Type

§
(index: number, value: FieldArray<TFieldValues, TFieldArrayName>) => void
[src]