Stefan Baumgartner: Rust, TypeScript, and Software Engineering

Recent articles

The `never` type and error handling in TypeScript

Stefan Baumgartner

Stefan on Mastodon

Posted in TypeScript

One thing that I see more often recently is that folks find out about the never type, and start using it more often, especially trying to model error handling. But more often than not, they don’t use it properly or overlook some fundamental features of never. This can lead to faulty code that might act up in production, so I want to clear doubts and misconceptions, and show you what you can really do with never.

Want more? Check out all 180 articles

TypeScript in 50 Lessons

Check out my book TypeScript in 50 Lessons. It takes you from apprentice to pro, teaching you the long-lasting aspects of TypeScript's type system.

TypeScript in 50 Lessons features byte-sized tutorials that allow you to learn TypeScript without being overwhelmed. It's friendly, beautifully designed, and written from a JavaScript developer's point of view.

My TypeScript book

Latest slides and coverage

Want more? Check out all 15 slide decks

Stefan's articles elsewhere

Want more? Check out all 18 articles

Stay up to date!

3-4 updates per month, no tracking, spam-free, hand-crafted. Our newsletter gives you links, updates on fettblog.eu, conference talks, coding soundtracks, and much more.