17. TYPESCRIPT
TypeScript is an open source
language and compiler written
by Microsoft.
Adds optional static typing and
class-based object oriented
programming to the javascript
language
18. TYPESCRIPT
He was the original author of Turbo
Pascal and the chief architect
of Delphi. He currently works
for Microsoft as the lead architect
of C# and core developer
on TypeScript. Anders Hejlsberg
30. What’s TypeScript?
Class-based object orientation
tsc
mainController.ts
var x: number;
class mainController { }
mainController.js
var x;
function mainController { }
cscmainController.cs mainController.dll
31. Why TypeScript?
At Development Time
Better type checking
More powerful refactoring experience
Class-based object oriented programming
techniques
At Deployment Time
It’s just JavaScript
32. Development Environment
Node.js
The command-line TypeScript compiler
can be installed as a Node.js package.
npm install -g typescript
tsc helloworld.ts
Tools
Visual Studio includes TypeScript in the box, starting with
Visual Studio 2013 Update 2.
You can also edit TypeScript in VS Code, WebStorm, Atom,Sublime Text,
and Eclipse.
Open Source
TypeScript is being developed on GitHub. The TypeScript compiler is implemented
in TypeScript, and can be used in any JavaScript host.