TypeScript
2
TypeScript Characteristics
● JavaScript superset.
● Transpiles to ES6 or ES5
● Optionally static typing and type inference
● JavaScript code is valid TypeScript code
● Strict null checks
3
Why TypeScript?
● Better autocomplete and refactoring IDE support
● Declare intent and better source code documentation
● Scales better in large code bases
● Catch errors while coding
● Adoption (Apache 2 licensed, backed by Microsoft)
● WebStorm and Visual Studio Code support out of the box
4
Tutorials and Examples
● TypeScript Migration guide
● Introduction video
● Travel cloud project and code examples

TypeScript

  • 1.
  • 2.
    2 TypeScript Characteristics ● JavaScriptsuperset. ● Transpiles to ES6 or ES5 ● Optionally static typing and type inference ● JavaScript code is valid TypeScript code ● Strict null checks
  • 3.
    3 Why TypeScript? ● Betterautocomplete and refactoring IDE support ● Declare intent and better source code documentation ● Scales better in large code bases ● Catch errors while coding ● Adoption (Apache 2 licensed, backed by Microsoft) ● WebStorm and Visual Studio Code support out of the box
  • 4.
    4 Tutorials and Examples ●TypeScript Migration guide ● Introduction video ● Travel cloud project and code examples

Editor's Notes

  • #3 TypeScript is a superset of JavaScript which primarily provides optional static typing, classes and interfaces. One of the big benefits is to enable IDEs to provide a richer environment for spotting common errors as you type the code.