Skip to main content
Module

x/ts_morph/ts_morph.d.ts>SourceFile#move

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

Moves this source file to a new file.

This will modify the module specifiers in other files that specify this file and the module specifiers in the current file, if necessary.

Parameters

filePath: string
  • New file path. Can be relative to the original file or an absolute path.
optional
options: SourceFileMoveOptions
  • Options for moving.