TypeScript
arendjr
•
7mo ago
•
93%
Writing exhaustive switch statements in TypeScript
https://arendjr.nl/blog/2024/03/exhaustive-switch-statements-in-typescript/Today I'm sharing a little trick that I like to use to make switch statements cleaner and more type-safe. Happy to hear other ideas!
Comments 5