Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#moveImmediatelySync

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

Moves this source file to a new file and synchronously updates the file system immediately.

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.