TypeScript is an exetnetion of javascript language. It adds optional static typing to the language, so the errors may be easily detected. It can be used to develop client and server side javascript applications.
TypeScript is a transpiled language to javascript. So any code wrtitten in TypeScript, will be first converted to javascript then executed. The code can be converted in two different
ways:
- each ts (TypeScript) file is converted into a corrresponding js (javascript) file.
- all ts files will be bundled into one javascript file.