Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class BaseExtendedEnum
import { BaseExtendedEnum } from "https://deno.land/x/authlete_deno@v1.2.3/src/type/base_extended_enum.ts";

Base class for 'extended enum' classes, which are classes that simulate enums with additional parameters. This class is supposed to be used as the base class for an 'extended enum' class as below.

class MyExtendedEnum extends BaseExtendedEnum
{
    static readonly MY_ENUM_1 = new MyEnum(1, 'first enum');
    static readonly MY_ENUM_2 = new MyEnum(2, 'second enum');
    ...
}

Constructors

new
BaseExtendedEnum(value: number, string: string)

The constructor.

Properties

string: string

The string representing this enum.

value: number

The number representing this enum.