TypeScript Exhaustiveness Checking

Notice that there is a red line in line 347, it is due to missing triangle case in switch block.

This is the error shown in the code.

After adding triangle case in line 346, the error disappeared.

Examples

Leave a Reply

Your email address will not be published.