Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
class Cliffy.EnumType
extends Type<T>
import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/original_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>