Skip to main content
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@15.1.0/bootstrap/ts_morph_bootstrap.js";

Constructors

new
Project(objs, options)

Methods

_addSourceFilesForTsConfigResolver(tsConfigResolver, compilerOptions)
_addSourceFilesForTsConfigResolverSync(tsConfigResolver, compilerOptions)
_getTsConfigResolover(tsConfigFilePath)
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,
)