Category "typescript-compiler-api"

How to access FlowNode in typescript ast api?

I try to resolve foo and bar from nodes variable. After I checked at ts-ast-viewer you can see in the picture that typescript can know about foo and bar from no

Typescript Compiler API:How to get absolute path to source file of import module using typescript compiler api

I try to get the path information as follows: const typeChecker = program.getTypeChecker(); const importFileSymbol = typeChecker.getSymbolAtLocation(

Typescript Compiler API:How to get absolute path to source file of import module using typescript compiler api

I try to get the path information as follows: const typeChecker = program.getTypeChecker(); const importFileSymbol = typeChecker.getSymbolAtLocation(