2ality | JavaScript and more
Follow
TypeScript: extracting parts of composite types via infer
In this blog post, we explore how we can extract parts of composite types via the infer operator.It helps if you are loosely familiar with conditional types. You can check out section “Conditional types” in “Tackling TypeScript” to read up on them.