Migrating 3.7 Million Lines of Flow Code to TypeScript

· Pinterest · April 16, 2025, 7:33 p.m.
Summary
Pinterest successfully migrated 3.7 million lines of code from Flow to TypeScript over eight months. This transition improved type safety, developer experience, and hiring prospects. The blog details their motivations, the migration process divided into setup, conversion, and integration phases, and the reflections on the outcome. Key benefits included better community support, language features, and intuitive error handling, while challenges highlighted slow type checks requiring optimization. Overall, the migration was deemed a success, sharing valuable insights for similar projects.