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
Latest
import { type RecordSchema } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/record/index.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.