import { record } from "https://deno.land/x/valibot@v0.5.0/src/schemas/record/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
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
pipe: Pipe<RecordOutput<TRecordKey, TRecordValue>>A validation and transformation pipe.
Returns
A record schema.