top | item 22409963

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

5 points| truebosko | 6 years ago

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?

3 comments

order

thebrain|6 years ago

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. :)