Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>FileTextChanges

Compile your Deno project to run on Node.js.
Go to Latest
class FileTextChanges
import { FileTextChanges } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Constructors

new
private
FileTextChanges()

Methods

applyChanges(options?: ApplyFileTextChangesOptions): this | undefined

Applies the text changes to the file. This modifies and possibly creates a new source file.

WARNING: This will forget any previously navigated descendant nodes in the source file.

getFilePath(): string

Gets the file path.

getSourceFile(): SourceFile | undefined

Gets the source file if it was in the cache at the time of this class' creation.

Gets the text changes

isNewFile(): boolean

Gets if this change is for creating a new file.