Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EnumItem

Represents an Item of an Enum.

Hierarchy

  • EnumItem

Constructors

Properties

Methods

Constructors

constructor

  • new EnumItem(key: string, value: number): EnumItem
  • Parameters

    • key: string

      the enum key

    • value: number

      the enum value

    Returns EnumItem

Properties

key

key: string

value

value: number

Methods

has

  • has(value: string | number | EnumItem): boolean
  • Checks if the flagged EnumItem has the passing object.

    method

    has

    Parameters

    • value: string | number | EnumItem

      The object to check with.

    Returns boolean

    The check result.

is

  • is(item: any): boolean
  • Checks if the EnumItem is the same as the passing object.

    method

    is

    Parameters

    • item: any

      The object to check with.

    Returns boolean

    The check result.

toJSON

  • toJSON(): any
  • Returns JSON object representation of this EnumItem.

    method

    toJSON

    Returns any

    JSON object representation of this EnumItem.

toString

  • toString(): string
  • Returns String representation of this EnumItem.

    method

    toString

    Returns string

    String representation of this EnumItem.

valueOf

  • valueOf(): number
  • Returns the value to compare with.

    method

    valueOf

    Returns number

    The value to compare with.

Generated using TypeDoc