Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#copyImmediately

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

Copy this source file to a new file and immediately saves it to the file system asynchronously.

This will modify the module specifiers in the new file, if necessary.

Parameters

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