Exhaustive Switches

Make switch and match statements provably total so adding a case forces every site to handle it, with no default that hides the gap. Use when branching over an enum, union, or sealed type.

Amey-Thakur Updated 14 repo stars

File contents

Amey-Thakur/AI-SKILLS commit f94efd15ea

Frequently asked questions

npx get-skill add amey-thakur/exhaustive-switches