Typescript intro

40
produced by intro to

Transcript of Typescript intro

p r o d u c e d b y

intro to

d i r e c t ed by

al e s s i o de b e n e d e t t o

andrea b a l d u c c i

s t arr i n g

episode 1

a long time ago in a galaxy

far, far away

…written in 10 days for

the mythical…

NON PROFESSIONAL PROGRAMMER

NON PROFESSIONAL PROGRAMMER

nowadays

welcome to the {undefined} side

==

NaN NaN

episode 2

TypeScript is a typed superset of JavaScript that compiles to

plain JavaScript

Types enable TypeScript developers to use highly-productive development

tools and practices

static checking, symbol-based navigation,

statement completion, and code refactoring.

https://github.com/borisyankov/DefinitelyTyped

demohttp://tinyurl.com/devmarche-tsintro

class Jedi {name: string;constructor(name: string) {this.name = name;

}

useTheForce() { }}

class SuperHero {name: string;constructor(name: string) {this.name = name;

}

useTheForce() { }fly() {}

}

var hulk = new SuperHero('Hulk');

var yoda = new Jedi('Yoda');

yoda = hulk

TypeScript is a

structural type system

episode 3

http://tinyurl.com/devmarche-ngts

git checkout step0