x/zod/external.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodRecord
extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>>
import { ZodRecord } from "https://deno.land/x/zod@v3.17.3/external.ts?s=ZodRecord";

Type Parameters

optional
Key extends KeySchema = ZodString
[src]
optional
Value extends ZodTypeAny = ZodTypeAny
[src]

Properties

readonly
element
[src]
readonly
keySchema
[src]
readonly
valueSchema
[src]

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>[src]

Static Methods

create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>[src]
create<Keys extends KeySchema, Value extends ZodTypeAny>(
keySchema: Keys,
valueType: Value,
params?: RawCreateParams,
): ZodRecord<Keys, Value>
[src]
create(
first: any,
second?: any,
third?: any,
): ZodRecord<any, any>
[src]