Class ZodLazy<T>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_def: Zod.z.ZodLazyDef<T>
_input: Zod.z.input<T>
_output: Zod.z.output<T>
_type: Zod.z.output<T>
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<Zod.z.SafeParseReturnType<Zod.z.input<T>, Zod.z.output<T>>>

Alias of safeParseAsync

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

Accessors

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

  • get schema(): T
  • Returns T

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean