Because it's still wrong. As @knittl noted, if someone does something unsound or if, as you mentioned, you add new cases, the case will be wrong.
From a typing perspective, false
is not assignable to void
, void
is nothing, and false
is a boolean
, not a subtype of nothing. You can't pass something to nothing.
If you want to ensure you handle all possible cases, consider adding logging (or don't) or enabling typescript-eslint/switch-exhaustiveness-check
.