Class ZodLiteral<T>

Type Parameters

  • T

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends Zod.z.Primitive>(
    value: T_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodLiteral<T_1>

Accessors

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

  • get value(): T
  • Returns T

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean