Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

z.ZodSet

import { z } from "https://esm.sh/zod@3.25.76/index.d.cts"; 

const { ZodSet } = z;
class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>> {
_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 create: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
}

§Type Parameters

§Extends

§
ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>>
[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: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>
[src]