Module

x/ts_morph/bootstrap/ts_morph_bootstrap.js>Project

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

Constructors

new
Project(objs, options)

Methods

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