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

x/valibot/src/schemas/map/map.ts>MapSchema

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