Skip to main content

Class: EnumValueTypeDef

A definition of a value in a custom enum defined in a Module.

Extends​

  • BaseClient

Constructors​

Constructor​

new EnumValueTypeDef(ctx?, _id?, _description?, _name?, _value?): EnumValueTypeDef

Constructor is used for internal usage only, do not create object from it.

Parameters​

ctx?​

Context

_id?​

EnumValueTypeDefID

_description?​

string

_name?​

string

_value?​

string

Returns​

EnumValueTypeDef

Overrides​

BaseClient.constructor

Methods​

description()​

description(): Promise<string>

A doc string for the enum member, if any.

Returns​

Promise<string>


id()​

id(): Promise<EnumValueTypeDefID>

A unique identifier for this EnumValueTypeDef.

Returns​

Promise<EnumValueTypeDefID>


name()​

name(): Promise<string>

The name of the enum member.

Returns​

Promise<string>


sourceMap()​

sourceMap(): SourceMap

The location of this enum member declaration.

Returns​

SourceMap


value()​

value(): Promise<string>

The value of the enum member

Returns​

Promise<string>