Skip to main content
Module

x/deno2node/src/deps.deno.ts>SourceFile#applyTextChanges

Compile your Deno project to run on Node.js.
Go to Latest
method SourceFile.prototype.applyTextChanges
import { SourceFile } from "https://deno.land/x/deno2node@v1.6.0/src/deps.deno.ts";

Applies the text changes to the source file.

WARNING! This will forget all the nodes in the file! It's best to do this after you're all done with the file.

Parameters

textChanges: ReadonlyArray<ts.TextChange | TextChange>
  • Text changes.