Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/index.ts>RecordSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Latest
import { type RecordSchemaAsync } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/index.ts";

Record schema async type.

Type Parameters

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

Properties

readonly
type: "record"

The schema type.

readonly
reference: recordAsync

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.