Skip to main content

ArrayItems

The typed collection of item nodes exposed by an array node.

Import

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

When to use it

Use for the item-node collection returned by array navigation. These are nodes rather than raw array values.

Declaration

type ArrayItems<TItem extends AnyNode, TParent extends AnyNode> = readonly ArrayItemWithParent<TItem, ArrayNode<TItem, TParent>>[];

Type parameters

ParameterConstraintDefault
TItemAnyNodeRequired
TParentAnyNodeRequired