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

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

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

Creates a record schema.

Type Parameters

TRecordValue extends BaseSchema

Parameters

The value schema.

A validation and transformation pipe.

Creates a record schema.

Type Parameters

TRecordValue extends BaseSchema

Parameters

The value schema.

optional
error: string

The error message.

A validation and transformation pipe.

Creates a record schema.

Type Parameters

TRecordKey extends RecordKey
TRecordValue extends BaseSchema

Parameters

The key schema.

The value schema.

A validation and transformation pipe.

Creates a record schema.

Type Parameters

TRecordKey extends RecordKey
TRecordValue extends BaseSchema

Parameters

The key schema.

The value schema.

optional
error: string

The error message.

A validation and transformation pipe.