TypeScript Oddities
Technologieplauscherl VIII
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
@ddprrt
fettblog.eu
workingdraft.de
scriptconf.org
devone.at
stahlstadt.js.org