(Ad, please don’t block.)| exploringjs.com
(Ad, please don’t block.)| exploringjs.com
(Ad, please don’t block.)| exploringjs.com
(Ad, please don’t block.)| exploringjs.com
(Ad, please don’t block.)| exploringjs.com
In this blog post, we explore how we can extract parts of compound types via the infer keyword. It helps if you are loosely familiar with conditional types. You can check out chapter “Conditional types” in “Exploring TypeScript” to read up on them.| 2ality.com
TypeScript’s satisfies operator lets us check the type of a value (mostly) without influencing it. In this blog post, we examine how exactly it works and where it’s useful.| 2ality.com
JavaScript’s Arrays are so flexible that TypeScript provides two different kinds of types for handling them: Array types for arbitrary-length sequences of values that all have the same type – e.g.: Array Tuple types for fixed-length sequences of values where each one may have a different type – e.g.: [number, string, boolean] In this blog post, we look at the latter – especially how to compute with tuples at the type level.| 2ality.com