import { record } from "https://deno.land/x/valibot@v0.19.0/src/index.ts";
Creates a record schema.
Type Parameters
TRecordValue extends BaseSchema
Parameters
value: TRecordValue
The value schema.
optional
pipe: Pipe<RecordOutput<StringSchema, TRecordValue>>A validation and transformation pipe.
Returns
A record schema.
Creates a record schema.
Type Parameters
TRecordValue extends BaseSchema
Parameters
value: TRecordValue
The value schema.
optional
error: ErrorMessageThe error message.
optional
pipe: Pipe<RecordOutput<StringSchema, TRecordValue>>A validation and transformation pipe.
Returns
A record schema.
Creates a record schema.
Type Parameters
TRecordKey extends RecordKey
TRecordValue extends BaseSchema
Parameters
key: TRecordKey
The key schema.
value: TRecordValue
The value schema.
optional
pipe: Pipe<RecordOutput<TRecordKey, TRecordValue>>A validation and transformation pipe.
Returns
A record schema.
Creates a record schema.
Type Parameters
TRecordKey extends RecordKey
TRecordValue extends BaseSchema
Parameters
key: TRecordKey
The key schema.
value: TRecordValue
The value schema.
optional
error: ErrorMessageThe error message.
optional
pipe: Pipe<RecordOutput<TRecordKey, TRecordValue>>A validation and transformation pipe.
Returns
A record schema.