by throw-the-towel · 9mo ago · 0 comments
Every TS project I've worked on has an assertNever(val) thing specifically to check for this kinda stuff
I find the never type in TS actually being a proper bottom type + having control-flow based types vastly superior to what rust offers.