Exhausting enum values in switch statements without default case. · Issue #8618 · microsoft/TypeScript · GitHub
![Why is Typescript unable to infer the correct type based off an enum switch statement? - Stack Overflow Why is Typescript unable to infer the correct type based off an enum switch statement? - Stack Overflow](https://i.stack.imgur.com/aZZuo.png)
Why is Typescript unable to infer the correct type based off an enum switch statement? - Stack Overflow
![Provide editor feature for filling in 'switch' cases for common scenario · Issue #35428 · microsoft/TypeScript · GitHub Provide editor feature for filling in 'switch' cases for common scenario · Issue #35428 · microsoft/TypeScript · GitHub](https://raw.githubusercontent.com/heroboy/generate-switch-case-for-enum-type-extension/master/screenshot.gif)
Provide editor feature for filling in 'switch' cases for common scenario · Issue #35428 · microsoft/TypeScript · GitHub
![typescript - Compilation error when using a variable initialized by an enum value inside a switch - Stack Overflow typescript - Compilation error when using a variable initialized by an enum value inside a switch - Stack Overflow](https://i.stack.imgur.com/dlukY.png)