import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Replaces the text of the current node with new text.
This will forget the current node and return a new node that can be asserted or type guarded to the correct type.
Parameters
textOrWriterFunction: string | WriterFunction
- Text or writer function to replace with.