Skip to main content
Module

x/ts_morph/mod.ts>Program

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class Program
import { Program } from "https://deno.land/x/ts_morph@15.1.0/mod.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.