Chapter 4 of Effective TypeScript covers type design: the process of crafting your types to accurately model your domain. This item has always been a favorite of mine because of how immediately actionable it is. When you review code, be on the lookout for violations! What’s wrong with this code? /** * Returns a string with the foreground color. * Takes zero or one arguments. With no arguments, returns the * standard foreground color. With one argument, returns the foreground color * for a p...