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

x/valibot/src/schemas/record/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.13.0/src/schemas/record/index.ts";

Creates an async record schema.

Parameters

The value schema.

A validation and transformation pipe.

Returns

An async record schema.

Creates an async record schema.

Parameters

The value schema.

optional
error: string

The error message.

A validation and transformation pipe.

Returns

An async record schema.

Creates an async record schema.

Type Parameters

TRecordKey extends RecordKeyAsync
TRecordValue extends BaseSchema | BaseSchemaAsync

Parameters

The key schema.

The value schema.

A validation and transformation pipe.

Creates an async record schema.

Type Parameters

TRecordKey extends RecordKeyAsync
TRecordValue extends BaseSchema | BaseSchemaAsync

Parameters

The key schema.

The value schema.

optional
error: string

The error message.

A validation and transformation pipe.