typescript-book
typescript-book copied to clipboard
Fix Exhaustive Checks section code and reword it a bit
The code example for exhaustive checks wasn't correct as it wasn't a type error to forget to handle one of the cases for x.
The code is correct now but I'm not sure about the comments. This very likely needs more work so I welcome your feedback.
I see now that this is correctly covered in the next section so I'm not sure what this one is supposed to showcase then. Might be confusing to call it exhaustive checking?