Yes, the TypeScript compiler can generate an Abstract Syntax Tree (AST) for a TypeScript program, which includes information on the type dependencies in the program. However, obtaining a type dependency tree may require additional analysis and processing of the AST. Tools like tsquery and ts-morph can be used to traverse the AST and extract type information such as dependencies between classes and interfaces.
Asked: 2022-08-30 11:00:00 +0000
Seen: 11 times
Last updated: Nov 21 '21