O'Reilly logo

TypeScript Blueprints by Ivo Gabe de Wolff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Migrate JavaScript to TypeScript

In the previous chapters, we have built new applications in TypeScript. However, you might also have old code bases in JavaScript which you want to migrate to TypeScript. We will see how these projects can be converted to TypeScript.

You could rewrite the whole project from scratch, but that would require a lot of work for big projects. Since TypeScript is based on JavaScript, this transition can be done more efficiently.

Since the migration process is dependent on the project, this chapter can only give guidance. For various common topics, this chapter contains a recipe to migrate code. Migrating a project requires knowledge of the frameworks and the structure of the project.

The following steps are related ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required