Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>ArraySchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface ArraySchema
Re-export
import { type ArraySchema } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/mod.ts";

Array schema type.

Type Parameters

TItem extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TMessage extends ErrorMessage<ArrayIssue> | undefined

Properties

readonly
type: "array"

The schema type.

readonly
reference: array

The schema reference.

readonly
expects: "Array"

The expected property.

readonly
item: TItem

The array item schema.

readonly
message: TMessage

The error message.