Type Parameters

  • T extends ZodTypeAny

  • B extends string | number | symbol

Hierarchy

Constructors

Properties

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

Type declaration

superRefine: ((refinement: ((arg: T["_output"] & z.BRAND<B>, ctx: RefinementCtx) => any)) => ZodEffects<ZodBranded<T, B>, T["_output"] & z.BRAND<B>, T["_input"] & z.BRAND<B>>)

Type declaration

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    Type Parameters

    • B extends string | number | symbol

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

  • Parameters

    • description: string

    Returns ZodBranded<T, B>

  • Returns boolean

  • Returns boolean

  • Type Parameters

    Type Parameters

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

    Parameters

    • option: T

    Returns ZodUnion<[ZodBranded<T, B>, T]>

  • Parameters

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

  • Parameters

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

  • Type Parameters

    Type Parameters

    • RefinedOutput extends any

    Parameters

    • check: ((arg: T["_output"] & z.BRAND<B>) => arg is RefinedOutput)
        • (arg: T["_output"] & z.BRAND<B>): arg is RefinedOutput
        • Parameters

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

          Returns arg is RefinedOutput

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: T["_output"] & z.BRAND<B>) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodBranded<T, B>, RefinedOutput, RefinedOutput>

  • Parameters

    • check: ((arg: T["_output"] & z.BRAND<B>) => unknown)
        • (arg: T["_output"] & z.BRAND<B>): unknown
        • Parameters

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

          Returns unknown

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: T["_output"] & z.BRAND<B>) => Partial<Omit<ZodCustomIssue, "code">>)

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

  • Returns T

Generated using TypeDoc