Class ZodCatch<T>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends Zod.z.ZodTypeAny>(
    type: T_1,
    params: {
        description?: string;
        errorMap?: Zod.z.ZodErrorMap;
        invalid_type_error?: string;
        required_error?: string;
    } & { catch: T_1["_output"]
    | () => T_1["_output"] },
) => Zod.z.ZodCatch<T_1>

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T["_output"]

  • Parameters

    Returns Promise<T["_output"]>

  • Returns T