Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#applyTextChanges

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method SourceFile.prototype.applyTextChanges
import { SourceFile } from "https://deno.land/x/ts_morph@15.1.0/mod.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.