Class ZodIntersection<T, U>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends Zod.z.ZodTypeAny, U_1 extends Zod.z.ZodTypeAny>(
    left: T_1,
    right: U_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodIntersection<T_1, U_1>

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T["_output"] & U["_output"]

  • Parameters

    Returns Promise<T["_output"] & U["_output"]>