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

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

The modular and type safe schema library for validating structural data 🤖
Latest
import { type MapSchemaAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/map/mapAsync.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.