Type Parameters

  • T extends ZodTypeAny
  • B extends string | number | symbol

Hierarchy (View Summary)

Constructors

Properties

_input: T["_input"]
_output: T["_output"] & z.BRAND<B>
_type: T["_output"] & z.BRAND<B>
spa: (
    data: unknown,
    params?: Partial<ParseParams>,
) => Promise<SafeParseReturnType<T["_input"], T["_output"] & z.BRAND<B>>>

Alias of safeParseAsync

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

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

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

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

  • Parameters

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

  • Returns T