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

x/valibot/mod.ts>mapAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function mapAsync
import { mapAsync } from "https://deno.land/x/valibot@v0.5.0/mod.ts";

Creates an async map schema.

Parameters

key: TMapKey

The key schema.

value: TMapValue

The value schema.

A validation and transformation pipe.

Returns

An async map schema.

Creates an async map schema.

Parameters

key: TMapKey

The key schema.

value: TMapValue

The value schema.

optional
error: string

The error message.

A validation and transformation pipe.

Returns

An async map schema.