Class ZodSet<Value>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_input: Set<Value["_input"]>
_output: Set<Value["_output"]>
_type: Set<Value["_output"]>
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<
    Zod.z.SafeParseReturnType<Set<Value["_input"]>, Set<Value["_output"]>>,
>

Alias of safeParseAsync

create: <Value_1 extends Zod.z.ZodTypeAny = Zod.z.ZodTypeAny>(
    valueType: Value_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodSet<Value_1>

Accessors

  • get description(): undefined | string
  • Returns undefined | string

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    • maxSize: number
    • Optionalmessage: ErrMessage

    Returns this

  • Parameters

    • minSize: number
    • Optionalmessage: ErrMessage

    Returns this

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodSet<Value>

  • Parameters

    Returns Promise<Set<Value["_output"]>>

  • Parameters

    • size: number
    • Optionalmessage: ErrMessage

    Returns this