Module

x/ts_morph/bootstrap/ts_morph_bootstrap.js>Project

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class Project
import { Project } from "https://dotland.deno.dev/x/ts_morph@22.0.0/bootstrap/ts_morph_bootstrap.js";

Constructors

new
Project(objs, options)

Properties

compilerOptions
fileSystem

Methods

addSourceFileAtPath(filePath, options)
addSourceFileAtPathIfExists(filePath, options)
addSourceFileAtPathSync(filePath, options)
addSourceFilesFromTsConfig(tsConfigFilePath)
createProgram(options)
createSourceFile(
filePath,
sourceFileText,
options,
)
getSourceFile(fileNameOrSearchFunction)
getSourceFileOrThrow(fileNameOrSearchFunction)
removeSourceFile(filePathOrSourceFile)
updateSourceFile(
filePathOrSourceFile,
sourceFileText,
options,
)