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

x/valibot/mod.ts>RecordSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias RecordSchema
Re-export
import { type RecordSchema } from "https://deno.land/x/valibot@v0.28.1/mod.ts";

Record schema type.

Type Parameters

TKey extends RecordKey
TValue extends BaseSchema
optional
TOutput = RecordOutput<TKey, TValue>
definition: BaseSchema<RecordInput<TKey, TValue>, TOutput> & { type: "record"; key: TKey; value: TValue; message: ErrorMessage | undefined; pipe: Pipe<RecordOutput<TKey, TValue>> | undefined; }