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

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

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

Creates an async record schema.

Parameters

value: TValue

The value schema.

A validation and transformation pipe.

Returns

An async record schema.

Creates an async record schema.

Parameters

value: TValue

The value schema.

optional
message: ErrorMessage

The error message.

A validation and transformation pipe.

Returns

An async record schema.

Creates an async record schema.

Parameters

key: TKey

The key schema.

value: TValue

The value schema.

A validation and transformation pipe.

Returns

An async record schema.

Creates an async record schema.

Parameters

key: TKey

The key schema.

value: TValue

The value schema.

optional
message: ErrorMessage

The error message.

A validation and transformation pipe.

Returns

An async record schema.