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

x/valibot/src/schemas/record/index.ts>RecordSchema

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

Record schema type.

Type Parameters

TRecordValue extends BaseSchema
optional
TRecordKey extends RecordKey = StringSchema
optional
TOutput = RecordOutput<TRecordKey, TRecordValue>
definition: BaseSchema<RecordInput<TRecordKey, TRecordValue>, TOutput> & { schema: "record"; record: { key: TRecordKey; value: TRecordValue; }; }