Interface ElementsSchema<S>

a schema that validates an array

interface ElementsSchema<S> {
    elements: S;
    metadata?: unknown;
    nullable?: boolean;
}

Type Parameters

Properties

elements: S

a schema for every element in the array

metadata?: unknown

optional metadata on a schema

nullable?: boolean

a key indicating if a type can be null