Class ZodNullable<T>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends Zod.z.ZodTypeAny>(
    type: T_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodNullable<T_1>

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns null | T["_output"]

  • Parameters

    Returns Promise<null | T["_output"]>

  • Returns T