typescript-transformer-handbook icon indicating copy to clipboard operation
typescript-transformer-handbook copied to clipboard

Question ts-creator

Open LukasMachetanz opened this issue 4 years ago • 3 comments

You are mentioning the following tipp:

Tip - Use ts-creator to quickly get factory functions for a piece of TypeScript source - instead of meticulously writing out an AST for a node you can write a code string and have it converted to AST for you.

Could you provide an example for e.g. inserting a node with ts-creator.

LukasMachetanz avatar May 05 '20 10:05 LukasMachetanz

Hey I haven't actually used that tbh - it was suggested by a friend.

Would you be interested in trying it out and then contributing back the information?

itsdouges avatar May 08 '20 23:05 itsdouges

Maybe you could ask this friend if he has actually tried it? :)

If I need it in my project I will definitely come back to you. Currently I just copied the "native" calls suggested by the TypeScript AST Viewer. :)

LukasMachetanz avatar May 24 '20 20:05 LukasMachetanz

@marionebl any thoughts?

itsdouges avatar May 25 '20 00:05 itsdouges