3 ms·
Between TSLint's no-switch-case-fall-through and an exhaustiveness check[1] I don't think any of these things are really problems with switch statements in Type
by alwaysdoit 8y ago
Between TSLint's no-switch-case-fall-through and an exhaustiveness check[1] I don't think any of these things are really problems with switch statements in TypeScript
[1] Putting a function like this in a default case will enforce that all cases are declared at compile time:
function exhaustive(exp: never): void {}