Which TypeScript module do you import to use the Compiler API?You import the 'typescript' module, usually as <code>import * as ts from 'typescript';</code>.ts.createSourceFile function do?ts.forEachChild to visit each node in the syntax tree.ts.createProgram in the Compiler API?ts.createSourceFile parses code text into a syntax tree representation.
ts.forEachChild help you do?ts.forEachChild is used to visit each child node in the syntax tree.
Program represents the entire compilation including multiple files and options.
The standard way is import * as ts from 'typescript';.
Parsing code with createSourceFile gives you the syntax tree to analyze.
