Introducing TypeScript
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,353
On Slideshare
1,298
From Embeds
55
Number of Embeds
1

Actions

Shares
Downloads
44
Comments
0
Likes
0

Embeds 55

http://www.scoop.it 55

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Introducing TypeScriptBart J.F. De SmetSenior Software Development Engineerbartde@microsoft.com
  • 2. Application scale JavaScript development is hard.
  • 3. TypeScript is a language for application scale JavaScript development.
  • 4. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
  • 5. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.Any browser. Any host. Any OS. Open Source.
  • 6. TypeScriptStarts with JavaScript All JavaScript code is TypeScript code, simply copy and paste All JavaScript libraries work with TypeScriptOptional static types, classes, modules Enable scalable application development and excellent tooling Zero cost: Static types completely disappear at run-timeEnds with JavaScript Compiles to idiomatic JavaScript Runs in any browser or host, on any OS
  • 7. TypeScript Type System
  • 8. Type SystemFormalization of JavaScript’s types Static representation of JavaScript’s dynamic type systemType inference and structural typing In practice very few type annotations are necessaryWorks with existing JavaScript libraries Declaration files can be written and maintained separatelyNot “provably type safe” Types reflect intent but do not provide guarantees
  • 9. TypeScript classes and modules
  • 10. Classes and modulesScalable application structuring Classes, Modules, and Interfaces enable clear contracts between componentsAligned with emerging standards Class, Module, and Arrow Function syntax aligns with ECMAScript 6 proposalsSupports popular module systems CommonJS and AMD modules in any ECMAScript 3 compatible environment
  • 11. Application Scale TypeScript
  • 12. TypeScript previewCompiler Open Source, written in TypeScriptTooling Visual Studio language service, browser hosted playgroundLibraries Static typing of DOM, jQuery, node.js, WinRT, WinJS, …And More Lots of samples and formal Language Specification