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

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

Deno-powered framework for building business web apps
Go to Latest
class ZodEnum
extends ZodType<T[number], ZodEnumDef<T>>
import { ZodEnum } from "https://deno.land/x/netzo@0.3.91/deps/zod/mod.ts";

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>>