Class ZodSet<Value>

Type Parameters

Hierarchy (view full)

Constructors

Properties

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

Alias of safeParseAsync

Type declaration

create: (<Value_1>(valueType, params?) => ZodSet<Value_1>)

Type declaration

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    • maxSize: number
    • Optional message: ErrMessage

    Returns this

  • Parameters

    • minSize: number
    • Optional message: ErrMessage

    Returns this

  • Parameters

    • Optional message: ErrMessage

    Returns ZodSet<Value>

  • Parameters

    Returns Set<Value["_output"]>

  • Parameters

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

  • Parameters

    • size: number
    • Optional message: ErrMessage

    Returns this

Generated using TypeDoc