Class ZodDefault<T>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_input: undefined | T["_input"]
_output: noUndefined<T["_output"]>
_type: noUndefined<T["_output"]>
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<
    Zod.z.SafeParseReturnType<
        undefined
        | T["_input"],
        noUndefined<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;
    } & { default: T_1["_input"]
    | () => noUndefined<T_1["_input"]> },
) => Zod.z.ZodDefault<T_1>

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Returns T