Typescript supports costant enumerables, declared through const enum.
This is usually just syntax sugar as the costant enums are inlined in compiled JavaScript.
For instance the following code
const enum Tristate {
True,
False,
Unknown
}
var something = Tristate.True;
compil...