TypeScript Compiler API

Parent: TypeScript Expert · researched 2026-06-03T23:22:50.256Z· 7 sources · 11 concepts · skill typescript-compiler-api

A lang-js-ts reference for driving the typescript npm package as a library — parsing source to

TypeScript Compiler API & Programmatic Tooling (Strada)

Overview

1. Two entry points: `createSourceFile` (parse only) vs `createProgram` (has a checker)

2. The CompilerHost — controlling I/O

3. Diagnostics

4. Emitting JS

5. The AST: nodes, kinds, walking, positions, trivia

6. The TypeChecker — resolving types and symbols

7. Custom transformers with `ts.factory`

8. Plugging transformers into a build — the `tsc` gap

9. The Language Service + tsserver LS plugins

10. ts-morph — the high-level wrapper

11. typescript-eslint `parserServices` (pointer only)

Tools / Frameworks

Methodology

Practical Patterns

Anti-Patterns

Troubleshooting

References

Children

← the whole tree · 3D view· how to read this page