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

x/valibot/src/schemas/array/index.ts>ArraySchemaAsync

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface ArraySchemaAsync
import { type ArraySchemaAsync } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/schemas/array/index.ts";

Array schema type.

Type Parameters

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

Properties

readonly
type: "array"

The schema type.

readonly
reference: arrayAsync

The schema reference.

readonly
expects: "Array"

The expected property.

readonly
item: TItem

The array item schema.

readonly
message: TMessage

The error message.