LearningTypeScript / site

Companion website for the Learning TypeScript book.
https://learningtypescript.com
MIT License
47 stars 11 forks source link

Article: Branded Types #133

Closed JoshuaKGoldberg closed 6 days ago

JoshuaKGoldberg commented 6 months ago

Overview

The topic of 'branded types' keeps coming up once in a while. There aren't too many resources on it right now - and no article is as deep on them as I want. Time to write it myself!

JoshuaKGoldberg commented 6 months ago

Marking as blocked on #134. Some common strategies around branded types involve asserts, which I think necessitates writing an article first on why throwing errors isn't type-safe.