Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>MapSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
Re-export
import { type MapSchemaAsync } from "https://deno.land/x/valibot@v0.35.0/mod.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.