Hacker News new | ask | show | jobs
by adpirz 1891 days ago
Our team just migrated (3 mil+ LOC) from Flow to TS in large part due to performance issues with Flow, especially in local development. Our fans have been running a lot quieter since the migration, happy to share more.
1 comments

Please do if it's not too much trouble. We have gone back and forth with this idea but never did make the jump.

A few random questions off of the top of my head...

Did you use a tool like flow-to-ts to help with some of the rewrites? What version of Flow were you using before? Did you take some special steps to get the TS perform well in the project or was it just better out of the box?

How's the experience been apart from the performance improvement - is there Flow features that you miss and have you done something to accommodate?

Namely, I'm personally a bit sad to loose local function parameter inference, exact types and explcit type assertion syntax. I'm a bit afraid of bugs coming from excess properties or misspelled optional properties, or from the abuse of TS "as" keyword (which is not the same as Flow's `(foo: Foo)` assertion syntax).