Type Parameters

  • T

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

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

Accessors

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

  • get value(): T
  • Returns T

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

    Returns ZodBranded<ZodLiteral<T>, B>

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T

  • Parameters

    Returns Promise<T>