Closed
Description
Suggestion
Expose escapeLeadingUnserscores
as part of the public API. unescapeLeadingUnderscores
is already exposed.
Use Cases
My use case is looking up properties on a ts.Type
. To correctly handle well-known symbols (__@symbolName
), I need to compare directly to Symbol#escapedName
. To make this work with regular names, I need to escape them before comparing. Currently I use my own function for escaping the name, which is not the best solution IMO.