Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends ZodType<any, any, any, T_1>>(
    getter: () => T_1,
    params?: RawCreateParams,
) => ZodLazy<T_1>

Accessors

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

  • get schema(): T
  • Returns T

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

    Returns ZodBranded<ZodLazy<T>, B>

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns output<T>

  • Parameters

    Returns Promise<output<T>>