import { recordAsync } from "https://deno.land/x/valibot@v0.19.0/src/index.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
error: ErrorMessageThe error message.
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
error: ErrorMessageThe error message.
optional
pipe: PipeAsync<RecordOutput<TRecordKey, TRecordValue>>A validation and transformation pipe.
Returns
An async record schema.