Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/domain_functions/src/test-prelude.ts>z.ZodMap

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
class z.ZodMap
extends ZodType<Map<Key["_output"], Value["_output"]>, ZodMapDef<Key, Value>, Map<Key["_input"], Value["_input"]>>
import { z } from "https://deno.land/x/domain_functions@v2.6.0/src/test-prelude.ts";
const { ZodMap } = z;

Type Parameters

optional
Key extends ZodTypeAny = ZodTypeAny
optional
Value extends ZodTypeAny = ZodTypeAny

Properties

readonly
keySchema
readonly
valueSchema

Methods

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

Static Properties

create: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(
keyType: Key,
valueType: Value,
params?: RawCreateParams,
) => ZodMap<Key, Value>