Skip to content
gitrep
Library
Topics
About
Topics
TypeScript
Type system patterns that make large codebases easier to change.
2
entries
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
41fe8c6
The satisfies operator
Check a value against a type without widening it, so you keep precise literal types.
Snippet
·
Sep 9, 2026