Skip to content

Ask HN: Is it worth converting a large JavaScript codebase to TypeScript?

5 pointstruebosko3 comments
On HN

As stated. We have a medium-large codebase in Javascript, using webpack to transpile `es2015` code to Javascript, as is standard.

TypeScript may be deemed "yet another shiny thing" by some, but the benefits of a typed superset of Javascript feel quite enticing

Any experiences or thoughts to share?

Comments

Would the same people that originally wrote the code be doing the conversion? Is it code that was written in a few months or over the course of five or more years? Is the functionally the code provide well documented or is the code itself the documentation? Is there automated testing that can help ensure things still work properly?

I'm sure you see where I'm going with this. :)

I'd say absolutely yes, it is.

I wrote up my experiences learning TypeScript here:

https://blog.isquaredsoftware.com/2019/11/blogged-answers-le...

Thanks for sharing this!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.