Sugget Add a new transfomer api like ts.createRegularExpressionLiteral
#23992
Labels
API
Relates to the public API for TypeScript
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
Search Terms
Suggestion
Use Cases
Right now there are plenty factory api in typescript transformer, eg:
But i have searched the codebase and all issue, seems like we can not create a RegularExpressionLiteral through transfomer api, If i understand correctly, please consider add a api to do this. If not, i am willing to hear any solution. 😄
Examples
Checklist
My suggestion meets these guidelines:
[ ] This wouldn't be a breaking change in existing TypeScript / JavaScript code
[ ] This wouldn't change the runtime behavior of existing JavaScript code
[ ] This could be implemented without emitting different JS based on the types of the expressions
[ ] This isn't a runtime feature (e.g. new expression-level syntax)
The text was updated successfully, but these errors were encountered: