Javatpoint Logo
Javatpoint Logo

TypeScript Introduction

What is TypeScript?

  • TypeScript is an open-source pure object-oriented programing language.
  • TypeScript is developed and maintained by Microsoft under Apache 2 license.
  • TypeScript was developed by Anders Hejlsberg, who is also one of the core members of the development team of C# language.
  • TypeScript was first released in the month of 1st October 2012 and was labeled version 0.8.
  • TypeScript is a strongly typed superset of JavaScript that compiles to plain JavaScript.
  • TypeScript is a language as well as a set of tools.
  • TypeScript is a language for application-scale JavaScript development.
  • TypeScript can be executed on Any browser, Any Host, and Any Operating System.
  • TypeScript is not directly run on the browser. It needs a compiler to compile and generate in JavaScript file.
  • TypeScript source file is in ".ts" extension. We can use any valid ".js" file by renaming it to ".ts" file.
  • TypeScript is the ES6 version of JavaScript with some additional features.
TypeScript Introduction

TypeScript Version

SN Version Release Date Significant Changes
1. 0.8 01-10-2012
2. 0.9 18-06-2013
3. 1.1 06-10-2014 Performance Improvements
4. 1.3 12-11-2014 Protected modifier, tuple types
5. 1.4 20-01-2015 union types, let and const declarations, type guards, type aliases, template strings
6. 1.5 20-07-2015 ES6 modules, decorators, for..of support, namespace keyword
7. 1.6 16-09-2015 JSX support, abstract classes and methods, local type declarations, intersection types, user-defined type guard functions
8. 1.7 30-11-2015 async and await support
9. 1.8 22-02-2016 constraints generic, control flow analysis errors, string literal types, allowJs
10. 2.0 22-09-2016 control flow based type analysis, null-and undefined-aware types, never type, discriminated union types, readonly keyword, type of this for functions
11. 2.1 08-11-2016 mapped types, keyof and lookup types, object spread and rest
12. 2.2 22-02-2017 object type, mix-in classes
13. 2.3 27-04-2017 async iteration, strict option, generic parameter defaults
14. 2.4 27-06-2017 dynamic import expressions, improved inference for generics, string enums, strict contravariance, for callback parameters
15. 2.5 31-08-2017 optional catch clause variables
16. 2.6 31-10-2017 strict function types
17. 2.7 31-01-2018 fixed length tuples, constant-named properties
18. 2.8 27-03-2108 improved keyof with intersection types, conditional types
19. 2.9 14-05-2018 support for symbols and numeric literals in keyof and mapped object types
20. 3.0 30-07-2018 project references, extracting and spreading parameter lists with tuples
21. 3.1 27-09-2018 mappable tuple and array types
22. 3.2 30-09-2018 stricter checking for bind, call, apply

Why use TypeScript?

  • TypeScript supports Static typing, Strongly type, Modules, Optional Parameters, etc.
  • TypeScript supports object-oriented programming features such as classes, interfaces, inheritance, generics, etc.
  • TypeScript is fast, simple, and most importantly, easy to learn.
  • TypeScript provides the error-checking feature at compilation time. It will compile the code, and if any error found, then it highlighted the errors before the script is run.
  • TypeScript supports all JavaScript libraries because it is the superset of JavaScript.
  • TypeScript support reusability because of the inheritance.
  • TypeScript make app development quick and easy as possible, and the tooling support of TypeScript gives us autocompletion, type checking, and source documentation.
  • TypeScript has definition file with .d.ts extension to provides a definition for external JavaScript libraries.
  • TypeScript supports the latest JavaScript features including ECMAScript 2015.
  • TypeScript gives all the benefits of ES6 plus more productivity.




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA