Module

x/ts_morph/ts_morph.d.ts>Program

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class Program
import { Program } from "https://dotland.deno.dev/x/ts_morph@21.0.0/ts_morph.d.ts";

Wrapper around Program.

Constructors

new
private
Program()

Properties

readonly
compilerObject: ts.Program

Gets the underlying compiler program.

Methods

emit(options?: ProgramEmitOptions): Promise<EmitResult>

Asynchronously emits the TypeScript files as JavaScript files.

Synchronously emits the TypeScript files as JavaScript files.

Emits the TypeScript files to JavaScript files to memory.

Gets the diagnostics found when parsing the tsconfig.json file.

Gets the declaration diagnostics.

Gets the emit module resolution kind.

Gets the global diagnostics.

Gets the semantic diagnostics.

Gets the syntactic diagnostics.

Get the program's type checker.

Gets if the provided source file was discovered while loading an external library.