This talk was given at ViennaJS November 2019 by Stefan Baumgartner.
TypeScript was designed to make the most sense out of any JavaScript code. Given the dynamic nature of JavaScript, this can lead to some very interesting typings that may seem odd at a first glance. In this talk, we will look at JavaScript scenarios that are easy to understand, but complex to define. We then see what tools TypeScript provides to make the most dynamical behaviour predictable, in the most elegant way possible.
Join us and learn:
- How void behaves in both TypeScript and JavaScript
- What Symbols are and why they can be unique
- The constructor interface pattern, and why classes are more complex than you might think
- Why substitutability is such an important concept for TypeScript
... and much more!