TypeScript: Conditional Types Explained

Learn what conditionals are and how they are used in TypeScript

type ConditionalType = T extends U ? X : Y