import { recordAsync } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/schemas/record/index.ts";
Creates a record schema.
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>>
Returns
RecordSchemaAsync<TKey, TValue, undefined>
A record schema.
Creates a record schema.
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
Returns
A record schema.