Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class Cliffy.EnumType
extends Type<T>
import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/deps.ts";
const { EnumType } = Cliffy;

Enum type. Allows only provided values.

Constructors

new
EnumType(values: ReadonlyArray<T>)

Type Parameters

T extends string | number

Properties

private
readonly
allowedValues: ReadonlyArray<T>