Skip to main content
Module

x/valibot/mod.ts>RecordSchemaAsync

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

Record schema async type.

Type Parameters

TKey extends RecordKeyAsync
TValue extends BaseSchema | BaseSchemaAsync
optional
TOutput = RecordOutput<TKey, TValue>

Properties

type: "record"

The schema type.

key: TKey

The key schema.

value: TValue

The value schema.

message: ErrorMessage | undefined

The error message.

pipe: PipeAsync<RecordOutput<TKey, TValue>> | undefined

The validation and transformation pipeline.