TypeScript Decorators: A Practical Guide
TypeScript

TypeScript Decorators: A Practical Guide

I put off learning TypeScript decorators for a long time. They looked like unnecessary magic. Then I actually used them on a real project -- and changed my mind. This guide walks through every type of decorator with real-world examples, from Express route handlers to validation patterns.

11 min read 2,912 views
#typescript #decorators #design-patterns #nestjs
Continue Reading →
Advanced TypeScript Utility Types
TypeScript

Advanced TypeScript Utility Types

TypeScript's built-in utility types didn't click for me right away. Then I started building real APIs and they became part of my daily toolkit. Here's a reference guide covering every built-in utility type, plus how to build your own with mapped types, conditional types, and template literal types — with honest notes on which ones actually matter.

12 min read 3,712 views
#typescript #utility-types #type-system #generics
Continue Reading →
Migrating a Node.js Project to TypeScript
TypeScript

Migrating a Node.js Project to TypeScript

When our team decided to migrate to TypeScript, I thought it'd take a week. It took three months. Here's the full story -- what went smoothly, what broke, how we handled strict mode, third-party types, and the build pipeline.

11 min read 3,751 views
#typescript #migration #nodejs #tsconfig
Continue Reading →
TypeScript Enums vs Union Types: Which Should You Use?
TypeScript

TypeScript Enums vs Union Types: Which Should You Use?

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.

10 min read 2,898 views
#typescript #enums #union-types #type-safety
Continue Reading →