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

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

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

Map schema async type.

Type Parameters

TValue extends BaseSchema | BaseSchemaAsync
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: PipeAsync<MapOutput<TKey, TValue>> | undefined

The validation and transformation pipeline.