Class ZodLiteral<T>

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

_input: T
_output: T
_type: T
spa: ((data, params?) => Promise<SafeParseReturnType<T, T>>)

Alias of safeParseAsync

Type declaration

create: (<T_1>(value, params?) => ZodLiteral<T_1>)

Type declaration

Accessors

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

  • get value(): T
  • Returns T

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T

  • Parameters

    Returns Promise<T>

Generated using TypeDoc