Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/dep/zod.ts>z.ZodSet

A frugal web framework
Go to Latest
class z.ZodSet
extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>>
import { z } from "https://deno.land/x/frugal@0.3.0/dep/zod.ts";
const { ZodSet } = z;

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>