Skip to main content
Module

x/ts_morph/bootstrap/ts_morph_bootstrap.d.ts>Project#removeSourceFile

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Project.prototype.removeSourceFile
import { Project } from "https://deno.land/x/ts_morph@15.1.0/bootstrap/ts_morph_bootstrap.d.ts";

Removes the source file at the provided file path.

Parameters

filePath: string
  • File path of the source file.

Removes the provided source file based on its fileName.

Parameters

sourceFile: ts.SourceFile
  • Source file to remove.