As we learned in the preceding section, when it comes to working with the TypeScript, AST is not very complicated. However, there is an open source npm module named ts-simple-ast that makes working with the TypeScript AST even easier! In this section, we are going to take a look at multiple examples to learn how to use ts-simple-ast.
Working with ts-simple-ast
Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.