How to slowly move to / migrate to TypeScript in an existing JavaScript system

后端 未结 2 1663
自闭症患者
自闭症患者 2021-02-01 03:06

We have an already existing JavaScript system.

What we want to do: We would like to start to integrate TypeScript into the current system; We cannot ju

2条回答
  •  梦谈多话
    2021-02-01 03:47

    This is something we have recently faced moving an HTML5 game engine of about 100,000 lines of JavaScript to TypeScript. We necessarily had to do it in stages, starting by just renaming the files from .js to .ts and gradually proceeding from there. The full description is here for anyone that is interested:

    http://hardcodeded.blogspot.jp/2013/02/mostly-painlessly-migrating-3d-game.html

提交回复
热议问题