Type Parameters

Hierarchy

  • ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>>

    Hierarchy

    • ZodSet

Constructors

Properties

_def: ZodSetDef<Value>
_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"]>>>)

Type declaration

superRefine: ((refinement: ((arg: Set<Value["_output"]>, ctx: RefinementCtx) => any)) => ZodEffects<ZodSet<Value>, Set<Value["_output"]>, Set<Value["_input"]>>)

Type declaration

    • (refinement: ((arg: Set<Value["_output"]>, ctx: RefinementCtx) => any)): ZodEffects<ZodSet<Value>, Set<Value["_output"]>, Set<Value["_input"]>>
    • Parameters

      Returns ZodEffects<ZodSet<Value>, Set<Value["_output"]>, Set<Value["_input"]>>

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

Type declaration

    • <Value_1>(valueType: Value_1, params?: RawCreateParams): ZodSet<Value_1>
    • Type Parameters

      Type Parameters

      Parameters

      • valueType: Value_1
      • Optional params: RawCreateParams

      Returns ZodSet<Value_1>

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    Returns ZodEffects<ZodSet<Value>, Set<Value["_output"]>, Set<Value["_input"]>>

  • Type Parameters

    Type Parameters

    • T extends ZodType<any, any, any, T>

    Parameters

    • incoming: T

    Returns ZodIntersection<ZodSet<Value>, T>

  • Type Parameters

    Type Parameters

    • B extends string | number | symbol

    Returns ZodBranded<ZodSet<Value>, B>

  • Parameters

    • def: Set<Value["_input"]>

    Returns ZodDefault<ZodSet<Value>>

  • Parameters

    • def: (() => Set<Value["_input"]>)
        • (): Set<Value["_input"]>
        • Returns Set<Value["_input"]>

    Returns ZodDefault<ZodSet<Value>>

  • Parameters

    • description: string

    Returns ZodSet<Value>

  • Returns boolean

  • Returns boolean

  • Parameters

    • maxSize: number
    • Optional message: ErrMessage

    Returns ZodSet<Value>

  • Parameters

    • minSize: number
    • Optional message: ErrMessage

    Returns ZodSet<Value>

  • Parameters

    • Optional message: ErrMessage

    Returns ZodSet<Value>

  • Type Parameters

    Type Parameters

    • T extends ZodType<any, any, any, T>

    Parameters

    • option: T

    Returns ZodUnion<[ZodSet<Value>, T]>

  • Parameters

    Returns Set<Value["_output"]>

  • Parameters

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

  • Type Parameters

    Type Parameters

    • RefinedOutput extends Set<Value["_output"], RefinedOutput>

    Parameters

    • check: ((arg: Set<Value["_output"]>) => arg is RefinedOutput)
        • (arg: Set<Value["_output"]>): arg is RefinedOutput
        • Parameters

          • arg: Set<Value["_output"]>

          Returns arg is RefinedOutput

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: Set<Value["_output"]>) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodSet<Value>, RefinedOutput, RefinedOutput>

  • Parameters

    • check: ((arg: Set<Value["_output"]>) => unknown)
        • (arg: Set<Value["_output"]>): unknown
        • Parameters

          • arg: Set<Value["_output"]>

          Returns unknown

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: Set<Value["_output"]>) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodSet<Value>, Set<Value["_output"]>, Set<Value["_input"]>>

  • Type Parameters

    Type Parameters

    • RefinedOutput extends Set<Value["_output"], RefinedOutput>

    Parameters

    • check: ((arg: Set<Value["_output"]>) => arg is RefinedOutput)
        • (arg: Set<Value["_output"]>): arg is RefinedOutput
        • Parameters

          • arg: Set<Value["_output"]>

          Returns arg is RefinedOutput

    • refinementData: IssueData | ((arg: Set<Value["_output"]>, ctx: RefinementCtx) => IssueData)

    Returns ZodEffects<ZodSet<Value>, RefinedOutput, RefinedOutput>

  • Parameters

    • check: ((arg: Set<Value["_output"]>) => boolean)
        • (arg: Set<Value["_output"]>): boolean
        • Parameters

          • arg: Set<Value["_output"]>

          Returns boolean

    • refinementData: IssueData | ((arg: Set<Value["_output"]>, ctx: RefinementCtx) => IssueData)

    Returns ZodEffects<ZodSet<Value>, Set<Value["_output"]>, Set<Value["_input"]>>

  • Parameters

    Returns Promise<SafeParseReturnType<Set<Value["_input"]>, Set<Value["_output"]>>>

  • Parameters

    • size: number
    • Optional message: ErrMessage

    Returns ZodSet<Value>

  • Type Parameters

    Type Parameters

    • NewOut

    Parameters

    • transform: ((arg: Set<Value["_output"]>, ctx: RefinementCtx) => NewOut | Promise<NewOut>)
        • (arg: Set<Value["_output"]>, ctx: RefinementCtx): NewOut | Promise<NewOut>
        • Parameters

          Returns NewOut | Promise<NewOut>

    Returns ZodEffects<ZodSet<Value>, NewOut, Set<Value["_input"]>>

Generated using TypeDoc