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

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

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

Creates an async map schema.

Parameters

key: TKey

The key schema.

value: TValue

The value schema.

optional
pipe: PipeAsync<MapOutput<TKey, TValue>>

A validation and transformation pipe.

Returns

An async map schema.

Creates an async map schema.

Parameters

key: TKey

The key schema.

value: TValue

The value schema.

optional
message: ErrorMessage

The error message.

optional
pipe: PipeAsync<MapOutput<TKey, TValue>>

A validation and transformation pipe.

Returns

An async map schema.