what is an enum typescript code example Example: enum in ts enum Direction { Up, Down, Left, Right, }