regardless of the perf impact I definitely value visual clarity so if there is a way to remove redundant ${string}s that isn't too expensive I'd do it (as is already the case most of the time)
regardless of the perf impact I definitely value visual clarity so if there is a way to remove redundant ${string}s that isn't too expensive I'd do it (as is already the case most of the time)
The types are mostly a way to visualize expressions and to provide narrowing via `.test`
The types are mostly a way to visualize expressions and to provide narrowing via `.test`
unfortunately for a case like this, I tested doing the check that would be necessary to avoid `${string}${string}` an it's a huge performance hit
unfortunately for a case like this, I tested doing the check that would be necessary to avoid `${string}${string}` an it's a huge performance hit
obviously the inference is going to be less useful for clarity with this number of branches but the capture groups seem like they work?
obviously the inference is going to be less useful for clarity with this number of branches but the capture groups seem like they work?
I'm pretty confident in the inference (although happy to be proven wrong) but depending on the complexity of the expression it's going to hit a wall at some point.
I'm pretty confident in the inference (although happy to be proven wrong) but depending on the complexity of the expression it's going to hit a wall at some point.
Eagerly awaiting support for some of those introspection + instantiation capabilities @typescriptlang.org 🙏
Eagerly awaiting support for some of those introspection + instantiation capabilities @typescriptlang.org 🙏
Also iirc @tylur.dev mentioned he was working on something related to this and Standard Schema?
Also iirc @tylur.dev mentioned he was working on something related to this and Standard Schema?