Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
import * as authleteDeno from "https://deno.land/x/authlete_deno@v1.2.10/src/type/base_extended_enum.ts";

Classes

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.

Functions

Convert JSON value(s) to the corresponding TExtendedEnum class(es). For example, if you pass 'CODE' (a string value) to this method, the method returns ResponseType.CODE (an instance of ResponseType class).

Convert instance(s) of TExtendedEnum class to the corresponding JSON value(s). For example, if you pass ResponseCode.CODE (an instance of ResponseType class) to this method, the method returns 'CODE' (a string value).