Flashes Home Search Notifications Sign in Post
George Haidar @disintegrator.dev · Mar 1

A great tip with exhaustiveness checks using switch blocks is to add a `value satisfies never;` expression to the default branch. This adds a compile time check and you'll spot that you missed a case in your IDE. Demo: tsplay.dev/w2y48W

4 likes 1 replies

?

Replies

Axel Rauschmayer (also on 🦣) · Mar 1

For people who are curious—the exception is defined here: 2ality.com/2025/01/type...

Legal

Privacy Policy Terms and Conditions

Contact

FAQs Feedback

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store

Feeds

  • Global
  • Trending
  • Blacksky Images
  • Photography
  • Discover
Browse all feeds
Feedback Ideas, bugs, and what ships next
Privacy Policy Terms and Conditions FAQs Bluesky Instagram Threads
Get it on the App Store