TypeScript: Supercharging enums with modules.
When using a language like Java you can use enums to do some very interesting things. For example a Java enum can look like so: public enum Directions{ EAST ("E"), WEST ("W"), NORTH ("N"), SOUTH ("S") ; /* Important Note: Must have semicolon at * the end when there is a enum field or method */ private final String shortCode; Directions(String code) { this.shortCode = code; } public String getDirectionCode() { return this....