Closed Danksa closed 5 months ago
@Danksa Hi, thanks for reporting.
Have pushed a fix for this on 0.32.16. Just note, some of the parsing and control character transformations between strings/regex and TS template literal types is a bit complex. The fix should resolve the issue, but feel free to ping on this thread if you run into any issues.
Cheers! S
@sinclairzx81 That was quick, thanks a lot!
Using one of the examples in the "Template Literal Types" section and adding a "$" or "." (or any other character with special meaning in Regex) will cause the properties to have escaped names in the resulting schema:
This outputs the following:
The expected output should be the following instead: