Hyperlinkv0.8.0-beta.28

SchemaRepresentation

SchemaRepresentation.Arraysinterfaceeffect/SchemaRepresentation.ts:331
Arrays

An array or tuple type.

Details

elements are the fixed positional elements, or tuple prefix, and each may be optional. rest contains the variadic tail types; a single-element rest with no elements produces a plain Array<T>. checks holds array-specific constraints, such as minLength, maxLength, and unique checks.

export interface Arrays {
  readonly _tag: "Arrays"
  readonly annotations?: Schema.Annotations.Annotations | undefined
  readonly elements: ReadonlyArray<Element>
  readonly rest: ReadonlyArray<Representation>
  readonly checks: ReadonlyArray<Check<ArraysMeta>>
}
Referenced by 2 symbols