TypeScript
TypeScript Generics: A Practical Guide With Real Examples
Generics separate TypeScript beginners from everyone else. Here are the patterns you'll actually reach for in real codebases, explained without the academic fluff.
2 articles found
Generics separate TypeScript beginners from everyone else. Here are the patterns you'll actually reach for in real codebases, explained without the academic fluff.
I spent way too long going back and forth on enums versus union types. Here's where I landed after trying both in real projects, covering numeric enums, string enums, const enums, as const patterns, and the actual runtime differences that matter when you're shipping code.