DEV Community

Discussion on: TypeScript Basics - A Definitive Guide

Collapse
 
imthedeveloper profile image
ImTheDeveloper

Have you had any experience converting an existing project over to typescript? Is there a way of slowly accomplishing the task or is it an all or nothing route?

Collapse
 
akashkava profile image
Akash Kava

Typescript allows you to declare type declarations, in which you can create definitions of old code and write new code in TypeScript. Slowly you can even rewrite old code in TypeScript one file at a time, and since TypeScript's output is pure JavaScript, your code can co exist along with old plain JavaScript and New TypeScript generated JavaScript.