x/zod/external.ts

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

Type Parameters

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

Methods

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

Static Properties

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