example with enums typescript Example: enums in typescript enum Direction { Up = 1, Down, Left, Right, }