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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface ArraySchemaAsync
import { type ArraySchemaAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/schemas/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.