Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>RecordSchema

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

Record schema type.

Type Parameters

TKey extends BaseSchema<string, string | number | symbol, BaseIssue<unknown>>
TValue extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TMessage extends ErrorMessage<RecordIssue> | undefined

Properties

readonly
type: "record"

The schema type.

readonly
reference: record

The schema reference.

readonly
expects: "Object"

The expected property.

readonly
key: TKey

The record key schema.

readonly
value: TValue

The record value schema.

readonly
message: TMessage

The error message.