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 🤖
Go to Latest
type alias MapSchema
import { type MapSchema } from "https://deno.land/x/valibot@v0.8.0/src/schemas/map/map.ts";

Map schema type.

Type Parameters

TMapKey extends BaseSchema
TMapValue extends BaseSchema
optional
TOutput = MapOutput<TMapKey, TMapValue>
definition: BaseSchema<MapInput<TMapKey, TMapValue>, TOutput> & { schema: "map"; map: { key: TMapKey; value: TMapValue; }; }