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

x/valibot/src/schemas/map/index.ts>MapSchemaAsync

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

Map schema async type.

Type Parameters

TKey extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
TValue extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
TMessage extends ErrorMessage<MapIssue> | undefined

Properties

readonly
type: "map"

The schema type.

readonly
reference: mapAsync

The schema reference.

readonly
expects: "Map"

The expected property.

readonly
key: TKey

The map key schema.

readonly
value: TValue

The map value schema.

readonly
message: TMessage

The error message.