import { Program } from "https://deno.land/x/ts_morph@16.0.0/mod.ts";
Wrapper around Program.
Methods
emit(options?: ProgramEmitOptions): Promise<EmitResult>
Asynchronously emits the TypeScript files as JavaScript files.
emitSync(options?: ProgramEmitOptions): EmitResult
Synchronously emits the TypeScript files as JavaScript files.
emitToMemory(options?: EmitOptions): MemoryEmitResult
Emits the TypeScript files to JavaScript files to memory.
Gets the diagnostics found when parsing the tsconfig.json file.
getDeclarationDiagnostics(sourceFile?: SourceFile): DiagnosticWithLocation[]
Gets the declaration diagnostics.
Gets the emit module resolution kind.
Gets the global diagnostics.
getSemanticDiagnostics(sourceFile?: SourceFile): Diagnostic[]
Gets the semantic diagnostics.
getSyntacticDiagnostics(sourceFile?: SourceFile): DiagnosticWithLocation[]
Gets the syntactic diagnostics.
Get the program's type checker.
isSourceFileFromExternalLibrary(sourceFile: SourceFile): boolean
Gets if the provided source file was discovered while loading an external library.