array
Function: array()
Section titled “Function: array()”function array<I, P>(opts): ArrayProducer<Produced<I>[], P> & object;Defined in: src/core/producer.ts:324
A repeated subtree. each selects item nodes; item produces one value. The
item producer’s type is carried in the phantom _item (see object).
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
I extends Producer<unknown, Presence> | - |
P extends Presence | "optional" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
opts | object & BaseMeta |
Returns
Section titled “Returns”ArrayProducer<Produced<I>[], P> & object