Type Parameters

  • T extends ZodTypeAny

  • B extends string | number | symbol

Hierarchy

Constructors

Properties

_def: ZodBrandedDef<T>
_input: T["_input"]
_output: T["_output"] & BRAND<B>
_type: T["_output"] & BRAND<B>
spa: ((data, params?) => Promise<SafeParseReturnType<T["_input"], T["_output"] & BRAND<B>>>)

Type declaration

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optional brand: B

    Returns ZodBranded<ZodBranded<T, B>, B>

  • Parameters

    • description: string

    Returns ZodBranded<T, B>

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T["_output"] & BRAND<B>

  • Parameters

    Returns Promise<T["_output"] & BRAND<B>>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • check: ((arg) => arg is RefinedOutput)
        • (arg): arg is RefinedOutput
        • Parameters

          • arg: T["_output"] & BRAND<B>

          Returns arg is RefinedOutput

    • refinementData: IssueData | ((arg, ctx) => IssueData)

    Returns ZodEffects<ZodBranded<T, B>, RefinedOutput, T["_input"]>

  • Parameters

    • check: ((arg) => boolean)
        • (arg): boolean
        • Parameters

          • arg: T["_output"] & BRAND<B>

          Returns boolean

    • refinementData: IssueData | ((arg, ctx) => IssueData)

    Returns ZodEffects<ZodBranded<T, B>, T["_output"] & BRAND<B>, T["_input"]>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • refinement: ((arg, ctx) => arg is RefinedOutput)
        • (arg, ctx): arg is RefinedOutput
        • Parameters

          Returns arg is RefinedOutput

    Returns ZodEffects<ZodBranded<T, B>, RefinedOutput, T["_input"]>

  • Parameters

    • refinement: ((arg, ctx) => void)

    Returns ZodEffects<ZodBranded<T, B>, T["_output"] & BRAND<B>, T["_input"]>

  • Type Parameters

    • NewOut

    Parameters

    • transform: ((arg, ctx) => NewOut | Promise<NewOut>)
        • (arg, ctx): NewOut | Promise<NewOut>
        • Parameters

          Returns NewOut | Promise<NewOut>

    Returns ZodEffects<ZodBranded<T, B>, NewOut, T["_input"]>

  • Returns T

Generated using TypeDoc