Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DegreeUnit

DegreeUnit is an "enum" like which represent all degrees unit available in the unit converter.

author

Nicolas GILLE nic.gille@gmail.com

since

0.4.0

version

1.0

license

MIT

implements

EnumUnit

Hierarchy

  • DegreeUnit

Implements

Index

Properties

Methods

Properties

Optional symbol

symbol: string

Symbol of the unit.

Static CELSIUS

CELSIUS: DegreeUnit = new DegreeUnit('C')

Static FAHRENHEIT

FAHRENHEIT: DegreeUnit = new DegreeUnit('F')

Static KELVIN

KELVIN: DegreeUnit = new DegreeUnit('K')

Methods

Static value

  • Get a specific value of the enum.

    since

    0.2.0

    version

    1.0

    Parameters

    • symbol: string

      The name of the unit expected.

    Returns DegreeUnit

    The DegreeUnit expected.

Generated using TypeDoc