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
interface RecordSchema
import { type RecordSchema } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Record schema type.

Type Parameters

TKey extends RecordKey
TValue extends BaseSchema
optional
TOutput = RecordOutput<TKey, TValue>

Properties

type: "record"

The schema type.

key: TKey

The record key schema.

value: TValue

The record value schema.

message: ErrorMessage | undefined

The error message.

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

The validation and transformation pipeline.