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

TypeScript Introduction

TypeScript Introduction

A brief talk given to the OKC .NET Developers Group about TypeScript

Avatar for Michael Sarchet

Michael Sarchet

March 04, 2013
Tweet

Other Decks in Technology

Transcript

  1. What is TypeScript TypeScript is a Super Set of JavaScript

    It borrows strongly from ECMAScript 6 for it's OO It relies heavily on interfaces and static typing to provide compile time error checking Completely Open Source
  2. What do you get - 2 class Student { fullname

    : string; constructor(public firstname, public middleinitial, public lastname) { this.fullname = firstname + " " + middleinitial + " " + lastname; } } interface Person { firstname: string; lastname: string; } function greeter(person : Person) { return "Hello, " + person.firstname + " " + person.lastname; } var user = new Student("Jane", "M.", "User"); document.body.innerHTML = greeter(user);