TypeScript Advanced Types — `this` Type and Dynamic Types

John Au-Yeung
Level Up Coding
Published in
6 min readJan 15, 2020

--

Photo by Jf Brou on Unsplash

TypeScript has many advanced type capabilities, which makes writing dynamically typed code easy. It also facilitates the adoption of existing JavaScript code since it lets us keep the dynamic capabilities of JavaScript while using the type-checking capability of TypeScript. There are many kinds of advanced types in TypeScript, like intersection types, union types, type guards, nullable…

--

--