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
2
entries in TypeScript
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
41fe8c6
The satisfies operator
Check a value against a type without widening it, so you keep precise literal types.
Snippet
·
Sep 9, 2026