x/zod/mod.ts

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

Type Parameters

optional
Value extends ZodTypeAny = ZodTypeAny
[src]

Methods

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

Static Properties

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