TypeScript
TypeScript pays off once you stop reaching for `any`. These articles cover the type system as a tool — what narrowing buys you, when generics are worth the syntax, and how to configure the compiler so it catches real bugs.
The type system
- Java Generics: Type Erasure and What It Breaks A list declared to hold Strings can genuinely contain an Integer, and the ClassCastException fires nowhere near the line that put it there. Erasure explains why. Tutorial · 13 min read · August 6, 2026
- TypeScript Utility Types You Will Actually Use Omit<User, "emial"> compiles without a single complaint and hands you back the entire type. Utility types remove real duplication, but only if you know exactly where they stop checking. Tutorial · 11 min read · August 6, 2026
- TypeScript Type Narrowing: From typeof to never You checked typeof value === "object" and TypeScript still says the value might be null. It is not being difficult. It knows something about JavaScript that you forgot. Tutorial · 11 min read · August 6, 2026
- TypeScript Enums vs Union Types: Which to Use Every other TypeScript construct disappears when you compile. Enums do not. That one fact explains most of the advice telling you to use string literal unions instead. Comparison · 11 min read · August 6, 2026
- TypeScript Generics Explained With Practical Examples A beginner-friendly guide to TypeScript generics, from a simple identity function to constraints and reusable, type-safe container types. Tutorial · 9 min read · July 22, 2026
- TypeScript any vs unknown: Which Should You Use? any switches off type checking; unknown keeps you safe but makes you narrow first. See exactly what each allows in code, plus a clear pick. Comparison · 9 min read · July 22, 2026
- TypeScript Interface vs Type: When to Use Which interface and type look almost the same in TypeScript. Here is what actually differs — merging, unions, extending — and which to pick day to day. Comparison · 8 min read · July 22, 2026
More on TypeScript
- TypeScript With React: Props, Hooks and Events useState([]) gives you an array of never, so the first setItems call fails with an error that mentions a type you never wrote. That one line explains most React and TypeScript friction. Tutorial · 12 min read · August 6, 2026
- Module Not Found: Fixing Cannot Resolve Errors The import works on your Windows laptop and fails on the Linux deploy box. That is not a mystery; it is your filesystem quietly ignoring capital letters. Tutorial · 11 min read · August 6, 2026
