typescript-book icon indicating copy to clipboard operation
typescript-book copied to clipboard

Fix Exhaustive Checks section code and reword it a bit

Open moljac024 opened this issue 6 years ago • 1 comments

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.

moljac024 avatar Sep 01 '18 12:09 moljac024

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?

moljac024 avatar Sep 01 '18 13:09 moljac024