Skip to main content
Module

x/deno2node/src/deps.deno.ts>SyntaxList#insertChildText

Compile your Deno project to run on Node.js.
Latest
method SyntaxList.prototype.insertChildText
import { SyntaxList } from "https://deno.land/x/deno2node@v1.12.0/src/deps.deno.ts";

Inserts text at the specified child index.

Parameters

index: number
  • Child index to insert at.
textOrWriterFunction: string | WriterFunction | ReadonlyArray<string | WriterFunction>
  • Text to insert or function that provides a writer to write with.

Returns

Node<ts.Node>[]

The children that were inserted.