You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I am fiddling around writing my own custom typescript transformer. In this context I also discovered this package.
I am wondering how or if ts-creator could be used to e.g. insert a node into the ast.
I understand that I get the ast representation with the creator function of the package. But I do not understand how I can use the returned string directly to e.g. insert a node into the ast.
Currently I just use the package as an helper to see what the exact ast representation would be. But it would be really cool if this string could somehow be used directly.
Therefore I just wanted to ask if someone has an idea. I appreciate any help.
Thanks in advance,
Lukas
The text was updated successfully, but these errors were encountered:
Hi.
Currently I am fiddling around writing my own custom typescript transformer. In this context I also discovered this package.
I am wondering how or if
ts-creator
could be used to e.g. insert a node into the ast.I understand that I get the ast representation with the
creator
function of the package. But I do not understand how I can use the returned string directly to e.g. insert a node into the ast.Currently I just use the package as an helper to see what the exact ast representation would be. But it would be really cool if this string could somehow be used directly.
Therefore I just wanted to ask if someone has an idea. I appreciate any help.
Thanks in advance,
Lukas
The text was updated successfully, but these errors were encountered: