
Using `extends` as a ternary expressions when typing
Gentle Introduction to Typescript Conditional Types
Today, we explore a way to create Typescript types that are based on some condition. We often (usually) use `extends` to create ternary expressions allowing us to build conditional types.by Robert Banning * Mar. 17, 2023