Typescript: AST / TypeChecker, get the resolved type with all attributes

Viewed 94

Looking for a way to get all attributes / declarations from the Type. So I can make auto object transform between javascript and mongodb possible, with specific type.

I found Typescript: TS Playground already did the similar thing as what I need:

enter image description here enter image description here

How can I extract the same info of resolved type as it does?

I tried to analyze with ast-viewer, also didn't get enough information there.

And ts-morph, got almost the same info as ast-viewer.

0 Answers
Related