TypeScript, by example

TypeScript by example - annotated code snippets covering the language from first principles to production.

15 lessons · Updated 2026-04-23

  1. 01Hello, World
  2. 02Basic Types
  3. 03Type Inference
  4. 04Interfaces
  5. 05Type Aliases
  6. 06Union Types
  7. 07Generics
  8. 08Functions
  9. 09Classes
  10. 10Enums
  11. 11Mapped Types
  12. 12Utility Types
  13. 13Narrowing
  14. 14Modules
  15. 15Declaration Files

Enjoyed this? Get more essays on software craft delivered to your inbox.

Subscribe free