import { recordAsync } from "https://deno.land/x/valibot@v0.9.0/src/schemas/record/recordAsync.ts";
Creates an async record schema.
Type Parameters
TRecordValue extends BaseSchema | BaseSchemaAsync
Parameters
value: TRecordValue
The value schema.
optional
pipe: PipeAsync<RecordOutput<StringSchema, TRecordValue>>A validation and transformation pipe.
Returns
An async record schema.
Creates an async record schema.
Type Parameters
TRecordValue extends BaseSchema | BaseSchemaAsync
Parameters
value: TRecordValue
The value schema.
optional
pipe: PipeAsync<RecordOutput<StringSchema, TRecordValue>>A validation and transformation pipe.
Returns
An async record schema.
Creates an async record schema.
Type Parameters
TRecordKey extends RecordKeyAsync
TRecordValue extends BaseSchema | BaseSchemaAsync
Parameters
key: TRecordKey
The key schema.
value: TRecordValue
The value schema.
optional
pipe: PipeAsync<RecordOutput<TRecordKey, TRecordValue>>A validation and transformation pipe.
Returns
An async record schema.
Creates an async record schema.
Type Parameters
TRecordKey extends RecordKeyAsync
TRecordValue extends BaseSchema | BaseSchemaAsync
Parameters
key: TRecordKey
The key schema.
value: TRecordValue
The value schema.
optional
pipe: PipeAsync<RecordOutput<TRecordKey, TRecordValue>>A validation and transformation pipe.
Returns
An async record schema.