TypeScript Advanced Types — Conditional Types

John Au-Yeung
Level Up Coding
Published in
5 min readJan 20, 2020

--

Photo by Wynand van Poortvliet on Unsplash

TypeScript has many advanced type capabilities and 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 multiple kinds of advanced types in TypeScript, like intersection types, union types, type guards, nullable types, and type…

--

--