TypeScript Oddities
![](https://s3.amazonaws.com/media-p.slid.es/uploads/514839/images/5060311/tp8.jpg)
Technologieplauscherl VIII
![](https://s3.amazonaws.com/media-p.slid.es/uploads/514839/images/5060313/tp8-1.jpg)
Technologieplauscherl VIII
It's ESNext ... and Types
Focus on tooling
Structural type system
Control flow analysis
Use TypeScript without TypeScript
class Person {
name: string;
age: number;
constructor(name: string, age: number) {
this.name = name;
this.age = age;
}
sayHello() : string {
return `Hello ${this.name}`;
}
}
So, what's odd?
Except that it isn't ...
TypeScript's odd because JavaScript's odd
And that's a good thing!
Dynamic static types suited for JavaScript's many cases
Tooling and productivity as first goal
![](https://s3.amazonaws.com/media-p.slid.es/uploads/514839/images/4447297/Thomsen-Photography_010.jpg)
@ddprrt
fettblog.eu
workingdraft.de
scriptconf.org
devone.at
stahlstadt.js.org