TypeScript 2.8: Conditional Types

added by JavaScript Kicks
1/9/2019 10:51:15 AM

662 Views

TypeScript 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. A conditional type describes a type relationship test and selects one of two possible types, depending on the outcome of that test.


0 comments