Articles

TypeScript articles from fettblog.eu — real-world TypeScript patterns, tips, and deep dives that complement the book.

2025

  1. TypeScript's erasableSyntaxOnly Flag

2024

  1. The never type and error handling in TypeScript

2023

  1. 5 Inconvenient Truths about TypeScript
  2. Announcing the TypeScript Cookbook

2022

  1. TypeScript: Iterating over objects
  2. How not to learn TypeScript

2021

  1. TypeScript: The humble function overload
  2. TypeScript + React: Children types are broken
  3. TypeScript: In defense of any
  4. TypeScript: Unexpected intersections
  5. TypeScript: Array.includes on narrow types
  6. TypeScript + React: Typing Generic forwardRefs
  7. TypeScript: Narrow types in catch clauses
  8. TypeScript: Low maintenance types
  9. Tidy TypeScript: Name your generics

2020

  1. Tidy TypeScript: Avoid traditional OOP patterns
  2. Tidy TypeScript: Prefer type aliases over interfaces
  3. Tidy TypeScript: Prefer union types over enums
  4. this in JavaScript and TypeScript
  5. TypeScript and ECMAScript Modules
  6. TypeScript + React: Why I don't use React.FC
  7. TypeScript + React: Component patterns
  8. TypeScript: Augmenting global and lib.dom.d.ts
  9. Vite with Preact and TypeScript
  10. TypeScript: Union to intersection type
  11. TypeScript: Variadic Tuple Types Preview
  12. TypeScript: Improving Object.keys
  13. TypeScript + React: Typing custom hooks with tuple types
  14. TypeScript: Assertion signatures and Object.defineProperty
  15. TypeScript: Check for object properties and narrow down type

2019

  1. boolean in JavaScript and TypeScript
  2. void in JavaScript and TypeScript
  3. Symbols in JavaScript and TypeScript
  4. Why I use TypeScript
  5. TypeScript + React: Extending JSX Elements
  6. TypeScript: Validate mapped types and const context
  7. TypeScript: Match the exact object shape
  8. TypeScript: The constructor interface pattern
  9. TypeScript without TypeScript — JSDoc superpowers
  10. TypeScript: Mapped types for type maps
  11. TypeScript: Ambient modules for Webpack loaders

2018

  1. TypeScript: Built-in generic types
  2. TypeScript: Type predicates
  3. TypeScript and Substitutability
  4. Debugging Node.js apps in TypeScript with Visual Studio Code