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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface MapSchema
import { type MapSchema } from "https://deno.land/x/valibot@v0.30.0/src/schemas/index.ts";

Map schema type.

Type Parameters

TKey extends BaseSchema
TValue extends BaseSchema
optional
TOutput = MapOutput<TKey, TValue>

Properties

type: "map"

The schema type.

key: TKey

The map key schema.

value: TValue

The map value schema.

message: ErrorMessage | undefined

The error message.

pipe: Pipe<MapOutput<TKey, TValue>> | undefined

The validation and transformation pipeline.