Module

x/ts_morph/mod.ts>Project#removeSourceFile

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Project.prototype.removeSourceFile
import { Project } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts";

Removes a source file from the project.

Parameters

sourceFile: SourceFile
  • Source file to remove.

Returns

boolean

True if removed.