Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ArrayLiteralExpression#addElements

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

Adds elements to the array.

Parameters

textsOrWriterFunction: ReadonlyArray<string | WriterFunction> | WriterFunction
  • Texts to add as elements.
optional
options: { useNewLines?: boolean; }
  • Options.

Returns

Expression<ts.Expression>[]