import { type TextInsertableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.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@17.0.0/mod.ts";
Type Parameters
T extends Constructor<TextInsertableNodeExtensionType>
Parameters
Base: T