TypeScript

Who is this guy?

Dale Alleshouse

 

 

 

@HumpbackFreak

hideoushumpbackfreak.com

github.com/dalealleshouse

What is TypeScript?

  • Open Source Language by Microsoft
    • https://github.com/microsoft/typescript
  • Super set of JavaScript
    • All valid JavaScript is also valid TypeScript
    • Optional static typing
    • ES6 Transpiler
    • Compiles into JavaScript
  • Used by Google for Angular

Why TypeScript?

  • Large Scale Application Development
    • Static Typing
    • Structuring Mechanisms
  • Tooling
  • Free at run time
  • ES6 now

What do I Need

  • TypeScript Compiler
    • npm install typescript -g
    • Comes with Visual Studio
  • Definitely Typed
    • npm install tsd -g
    • Avoid nuget for type definitions
  • Editor Plug-ins
    • VS Code
    • Atom
    • Sublime
    • etc...

Demo

More Cool Stuff!

  • http://www.typescriptlang.org/
  • Inheritance
  • Much more ES6
  • Async/Await
  • Decorators
  • Generics
  • Mixins
  • CommonJS/AMD modules
  • Union Types
  • Tuples

Thank You!

TypeScript

By Dale Alleshouse