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

x/valibot/src/index.ts>MapSchema

The modular and type safe schema library for validating structural data 🤖
Latest
Re-export
import { type MapSchema } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/index.ts";

Map schema type.

Type Parameters

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

Properties

readonly
type: "map"

The schema type.

readonly
reference: map

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.