January 9, 2019TypeScript 2.8 introduced conditional types, a powerful and exciting addition to the type system. Conditional types let us express non-uniform type mappings, that is, type transformations that differ depending on a condition. #Introduction to Conditional Types A conditional type describes a type relationship test and selects one of two possible types, depending on the outcome of tha
![Conditional Types in TypeScript](https://cdn-ak-scissors.b.st-hatena.com/image/square/c10b0d70b0098c2819f8f1d9ea69979b4bb4eac4/height=288;version=1;width=512/https%3A%2F%2Fmariusschulz.com%2Fimages%2Fcontent%2Fdefault_post_preview_image.kztf5vhv2m.imm.jpg)