Module

x/zod/external.ts>ZodSet

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodSet
extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>>
import { ZodSet } from "https://dotland.deno.dev/x/zod@v3.21.3/external.ts";

Type Parameters

optional
Value extends ZodTypeAny = ZodTypeAny

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>
max(maxSize: number, message?: errorUtil.ErrMessage): this
min(minSize: number, message?: errorUtil.ErrMessage): this
nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>
size(size: number, message?: errorUtil.ErrMessage): this

Static Properties

create: <Value extends ZodTypeAny = ZodTypeAny>(valueType: Value, params?: RawCreateParams) => ZodSet<Value>