The original tsc does not support exhaustiveness check, but you can use this typescript-eslint rule, it works perfectly in my project.
@typescript-eslint/switch-exhaustiveness-check
↧
What keep you guys using Rescript?
↧