Class ZodNativeEnum<T>

Type Parameters

Hierarchy (view full)

Constructors

Properties

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

Alias of safeParseAsync

Type declaration

create: (<T_1>(values, params?) => ZodNativeEnum<T_1>)

Type declaration

Accessors

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

  • get enum(): T
  • Returns T

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T[keyof T]

  • Parameters

    Returns Promise<T[keyof T]>

Generated using TypeDoc