Comment on In Defence of TypeScript EnumsComments−tengbretson1y`if (color === "Red") {`This counter example against using unions of literals would result in a compiler error ts(2367). Which only furthers the argument for using unions of literals instead.
Comments
`if (color === "Red") {`
This counter example against using unions of literals would result in a compiler error ts(2367). Which only furthers the argument for using unions of literals instead.