Skip to main content
Module

x/zod/mod.ts>ZodNativeEnum

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodNativeEnum
extends ZodType<T[keyof T], ZodNativeEnumDef<T>>
import { ZodNativeEnum } from "https://deno.land/x/zod@v3.2/mod.ts";

Type Parameters

T extends EnumLike

Methods

_parse(ctx: ParseContext): any

Static Properties

create: <T extends EnumLike>(values: T) => ZodNativeEnum<T>