Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

arrayProp

arrayProp<S>(items, options?): ArrayPropertySchema<S>

Defined in: packages/sigma/src/primitives/schema.ts:291

Creates an array property schema for nested structures.

Type Parameters

S

S extends Record<string, PropertySchema<unknown, PropertyType, boolean>>

Parameters

items

S

Schema for each array item

options?

ArrayPropertyOptions

Array property options

Returns

ArrayPropertySchema<S>

Array property schema