Decorators • More than just a compiler • Open sourced, community driven • e-Bay, JetBrains, Sky, Ubisoft, Wix, Angular, Ionic, Aurelia TypeScript – JavaScript that scales
and composition patterns (extends and implements) • Public, private and protected accessors • Arrow functions • Generics with constraints • Module system TypeScript – JavaScript that scales
lastName: string; } class Worker implements Person { constructor( public firstName: string, public lastName : string ){} greeting(): void { alert(`Hello, my name is ${this.firstName} ${this.lastName}`); } }
ruin your compatibility • IDE tooling (refactoring, navigation, and so on) • Save time for maintenance and refactoring • Just save money Why TypeScript?
and css stylesheets • Clients don’t have to download compiler code • Template errors can be found during build step • Only needed code is being built (tree shaking) Compile your code during build process