Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/zod/mod.ts>z.ZodEnum

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
class z.ZodEnum
extends ZodType<T[number], ZodEnumDef<T>>
import { z } from "https://deno.land/x/netzo@0.4.72/deps/zod/mod.ts";
const { ZodEnum } = z;

Type Parameters

T extends [string, ...string[]]

Properties

readonly
enum: Values<T>
readonly
Enum: Values<T>
readonly
options
readonly
Values: Values<T>

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>
exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>
extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract): ZodEnum<Writeable<ToExtract>>