Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/bootstrap/ts_morph_bootstrap.js>Project

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