Skip to main content

ArrayPatch

Complete readonly sequence accepted by an array node's patch(), identical to its set value.

Import​

import type { ArrayPatch } from '@ngblocks/form-nodes';

When to use it​

Use to derive the patch value contract from the array's child or item node types. It describes accepted patch input rather than a complete node value. Use FormNodeValue<typeof node> when starting from an existing node instance.

Declaration​

type ArrayPatch<TItem extends AnyNode> = ArraySet<TItem>;

Type parameters​

ParameterConstraintDefault
TItemAnyNodeRequired