Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <Value_1 extends ZodType<any, any, any, Value_1> = ZodTypeAny>(
    valueType: Value_1,
    params?: RawCreateParams,
) => ZodSet<Value_1>

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

    Returns ZodBranded<ZodSet<Value>, B>

  • 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 ZodSet<Value>

  • Parameters

    Returns Set<Value["_output"]>

  • Parameters

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

  • Parameters

    • size: number
    • Optionalmessage: ErrMessage

    Returns this