Preview:ts // i expected the following to return "aaa" but it return false. Why? type x1 = "aaa " extends `${infer Str}${infer _ extends " "}` ? Str : false; // false // Same expression with the expected result. type x3 = "aaa " extends `${infer Str} ` ? Str : false; // "aaa" ...
You can choose specific lines to embed by selecting them before copying the link.