Get the program by calling:

const program = project.getProgram();

Underlying compiler object

The underlying ts.Program can be retrieved as follows:

const tsProgram = program.compilerObject;

Warning: The underlying compiler object will be discared whenever manipulation occurs. For that reason, only hold onto the underlying compiler object between manipulations.


Generally you won't need to use the program because most of the functionality is exposed as methods on other objects.