import { Program } from "https://dotland.deno.dev/x/ts_morph@18.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.
getDeclarationDiagnostics(sourceFile?: SourceFile): DiagnosticWithLocation[]
Gets the declaration diagnostics.
getSyntacticDiagnostics(sourceFile?: SourceFile): DiagnosticWithLocation[]
Gets the syntactic diagnostics.
isSourceFileFromExternalLibrary(sourceFile: SourceFile): boolean
Gets if the provided source file was discovered while loading an external library.