Skip to main content
Module

x/ts_morph/ts_morph.d.ts>SyntaxList#addChildText

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method SyntaxList.prototype.addChildText
import { SyntaxList } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Adds text at the end of the current children.

Parameters

textOrWriterFunction: string | WriterFunction | ReadonlyArray<string | WriterFunction>
  • Text to add or function that provides a writer to write with.

Returns

Node<ts.Node>[]

The children that were added.