var Colors; (function (Colors) { Colors[Colors["RED"] = 0] = "RED"; Colors[Colors["BLUE"] = 1] = "BLUE"; Colors[Colors["GREEN"] = 2] = "GREEN"; })(Colors = exports.Colors || (exports.Colors = {})); if (color === 0) { }