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