Skip to content
gitrep
Library
Topics
About
Library
Every entry, newest first. Search by keyword or narrow by topic and kind.
Search the library
Topic
All topics
Git
TypeScript
Web Platform
Infrastructure
Databases
Tooling
Kind
All kinds
Article
Guide
Reference
Snippet
1
entry in TypeScript · Article
Clear filters
5d02e7b
Discriminated unions in practice
Model state as a set of explicit cases so the compiler tells you every place a new case needs handling.
Article
·
Oct 21, 2026