Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/valibot/src/schemas/record/record.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.9.0/src/schemas/record/record.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; }; }