Module

x/lume/deps/cliffy.ts>EnumType

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class EnumType
extends Type<TValue>
import { EnumType } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";

Enum type. Allows only provided values.

Constructors

new
EnumType(values: ReadonlyArray<TValue> | Record<string, TValue>)

Type Parameters

TValue extends string | number | boolean

Properties

private
readonly
allowedValues: ReadonlyArray<TValue>
import EnumType
import { EnumType } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";