TS Ep 44: The `infer` Keyword (Pattern Matching)
·594 words·3 mins
If conditional types are the if-else statements of Type Space, the infer keyword is the variable declaration (let x = ...). Learn how to extract types dynamically via pattern matching, rebuild ReturnType, and parse Template Literal Strings at compile time.
