Type safe SQL queries with Typescript template literal types, part 2, inference and recursivity
Don't forget to read the part 1 to understand how TLTs work.
Now that we know more about TLTs and how powerful they are, in this part and the following we are going to create a bunch of utility types designed to efficiently parse strings.
Inferenc...
Rasmus Schultz
Cool series!
The Split type (in the second-last example) recursively calls SplitOnDot, which I don't think is what you intended?
Also, I wonder, since the series ended abruptly, have you realized by now that type-safe SQL queries with string templates is not in fact possible? See TypeScript issues 33304 and 49552 - due to performance issues, it doesn't sound like this feature will be arriving anytime soon. 😥