interface TArray<T> {
    [Hint]?: string;
    [Kind]: "Array";
    [OptionalKind]?: string;
    [ReadonlyKind]?: string;
    $id?: string;
    $schema?: string;
    contains?: TSchema;
    default?: any;
    description?: string;
    examples?: any;
    items: T;
    maxContains?: number;
    maxItems?: number;
    minContains?: number;
    minItems?: number;
    params: unknown[];
    readOnly?: boolean;
    static: Static<T, unknown[]>[];
    title?: string;
    type: "array";
    uniqueItems?: boolean;
    writeOnly?: boolean;
}

Type Parameters

Hierarchy (view full)

Properties

[Hint]?: string
[Kind]: "Array"
[OptionalKind]?: string
[ReadonlyKind]?: string
$id?: string

Id for this schema

$schema?: string
contains?: TSchema

A schema for which some elements should match

default?: any

Default value for this schema

description?: string

Description of this schema

examples?: any

Example values matching this schema

items: T
maxContains?: number

A maximum number of contains schema matches

maxItems?: number

The maximum number of items in this array

minContains?: number

A minimum number of contains schema matches

minItems?: number

The minimum number of items in this array

params: unknown[]
readOnly?: boolean

Optional annotation for readOnly

static: Static<T, unknown[]>[]
title?: string

Title of this schema

type: "array"
uniqueItems?: boolean

Should this schema contain unique items

writeOnly?: boolean

Optional annotation for writeOnly