In this post, we will see how to resolve Resolve generic type from AST into actual type Question: The problem is about getting the actual type of function parameter to check it with checker.isNullableType. I should find it from the ...

Question: I try to follow TypeScript wiki example Using the Type Checker but cannot manage to identify arrow function. e.g.: Is not recognized as an arrow function type by my visitor: on the contrary, standard function are identified: e.g. is ...

Question: I know about ts-ast-viewer but I don’t know how they extract list of elements from the union. I have tried several existing solutions, including this and it seems that most of them are obsolete. Some ts.[methods] are deprecated now. ...

Question: I am trying to follow the Getting set up section here (Using the Compiler API). This results in the following error: My node version is v16.13.1. What did I do wrong? How can I fix that? Answer: I’m not ...