Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction of TypeScript

kvzhuang
October 04, 2012

Introduction of TypeScript

Introduction of TypeScript

kvzhuang

October 04, 2012
Tweet

More Decks by kvzhuang

Other Decks in Science

Transcript

  1. 02 • The Big Picture • Where is TypeScript •

    Introduction of TypeScript • Code Demo 02
  2. We want to use our code and skill to produce

    JS code. GWT…category Compile Technology We want to extend the usage domain of JS. NodeJS JS Runtime Engine Technology We want fancy utility and effect. jQuery UI AmChart We want make JS maintainable. Backbone
  3. We want to use our code and skill to produce

    JS code. GWT Compile Technology We want to extend the usage domain of JS. NodeJS JS Runtime Engine Technology We want fancy utility and effect. jQuery UI AmChart We want make JS maintainable. Backbone TypeScript is Here!!
  4. TypeScript • TypeScript is a language for application-scale JavaScript development

    • TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
  5. TypeScript • There's no implicit downcasting • All types are

    nullable • The type annotation syntax is nice • function takeCallback(callback : (n : number) => number) { ... } • You can overload in interfaces by parameter signature • interface Doubler { • double(s : string) : string; • double(n : number) : number; } • Arrow functions and lexical this