import { type TextInsertableNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Methods
insertText(pos: number, textOrWriterFunction: string | WriterFunction): this
Inserts text within the body of the node.
WARNING: This will forget any previously navigated descendant nodes.
replaceText(range: [number, number], textOrWriterFunction: string | WriterFunction): this
Replaces text within the body of the node.
WARNING: This will forget any previously navigated descendant nodes.
import { TextInsertableNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Type Parameters
T extends Constructor<TextInsertableNodeExtensionType>
Parameters
Base: T