TypeScript is a typed superset of JavaScript which is compiled to pure JavaScript. It follows the JavaScript standard and is also a multi-paradigm language, however it adds object-oriented functionality and syntax, classes and typing seen in languages like C# and Java.

It was considered by the public the 4th "most loved" language, according to a survey conducted by the Stack Overflow website in 2018, and is among the 15 most popular languages, according to a survey conducted by RedMonk .

A TypeScript code is saved in a file with the extension .ts and compiled into JavaScript using its compiler.

TypeScript History

TypeScript is a relatively new language. It was released for public use in October 2012 as language version 0.8. It was the result of two years of development at Microsoft, with Anders Hejlsberg, the lead architect of c#, as well as the creator of Delphi and Turbo Pascal working on the project as well.

Benefits of Using TypeScript

Anyone who has tried to develop and structure a large JavaScript application must have had some headaches over time. The use of TypeScript had great adoption for making the development more concise, robust and without losing the agility and advantages that JavaScript has.

As a typed language, important features like autocomplete in the IDE became available, code consistency and unexpected error prediction as well. In addition, we can list some other tangent advantages:

  • IT'S similar to the JavaScript and uses the same syntax and semantics.  
  • Similar to other typed languages like C# and Java, it helps back-end developers migrate to NodeJs more easily and even write front-end code.
  • You can call TypeScript code from existing JavaScript code. Also, it works with pure JavaScript code and libraries without any problems. 
  • The Definition file, with .d.ts extension , provides support for existing JavaScript libraries such as Jquery, D3.js , etc. Therefore, TypeScript code can add JavaScript libraries using type definitions to take advantage of the benefits of type checking, code autocompletion, and documentation in existing JavaScript dynamic type libraries.   
  • It includes features of ES6 and ES7 that can run in ES5 JavaScript engines like Node.js .

References:
https://blog.rocketseat.com.br/typescript-vantagens-mitos-conceitos/
https://www.typescriptlang.org/

0 0 votos
Nota do Artigo
Subscribe
Notify of
guest
0 Comentários
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x