Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/deps.ts>z.ZodRecord

Universal process manager built in Deno
Go to Latest
class z.ZodRecord
extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>>
import { z } from "https://deno.land/x/pup@1.0.0-rc.9/deps.ts";
const { ZodRecord } = z;

Type Parameters

optional
Key extends KeySchema = ZodString
optional
Value extends ZodTypeAny = ZodTypeAny

Properties

readonly
element
readonly
keySchema
readonly
valueSchema

Methods

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

Static Methods

create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>
create<Keys extends KeySchema, Value extends ZodTypeAny>(
keySchema: Keys,
valueType: Value,
params?: RawCreateParams,
): ZodRecord<Keys, Value>