import { ArrayLiteralExpression } from "https://deno.land/x/ts_morph@16.0.0/mod.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.
getElements(): Expression[]
Gets the array's elements.
getParent(): NodeParentType<ts.ArrayLiteralExpression>
getParentOrThrow(): NonNullable<NodeParentType<ts.ArrayLiteralExpression>>
insertElement(): Expression<ts.Expression>
Insert an element into the array.
insertElements(): Expression<ts.Expression>[]
index: number,
textsOrWriterFunction: ReadonlyArray<string | WriterFunction> | WriterFunction,
options?: { useNewLines?: boolean; },
Insert elements into the array.
removeElement(index: number): void
Removes an element from the array.
removeElement(element: Expression): void
Removes an element from the array.