import { ArrayLiteralExpression } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.ts";
Methods
addElement(textOrWriterFunction: string | WriterFunction, options?: { useNewLines?: boolean; }): Expression<ts.Expression>
Adds an element to the array.
addElements(textsOrWriterFunction: ReadonlyArray<string | WriterFunction> | WriterFunction, options?: { useNewLines?: boolean; }): Expression<ts.Expression>[]
Adds elements to the array.
getParent(): NodeParentType<ts.ArrayLiteralExpression>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ArrayLiteralExpression>>
insertElements(): Expression<ts.Expression>[]
index: number,
textsOrWriterFunction: ReadonlyArray<string | WriterFunction> | WriterFunction,
options?: { useNewLines?: boolean; },
Insert elements into the array.