Module

x/ts_morph/mod.ts>ElementAccessExpression

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ElementAccessExpression
extends ElementAccessExpressionBase<T>
import { ElementAccessExpression } from "https://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";

Type Parameters

optional
T extends ts.ElementAccessExpression = ts.ElementAccessExpression

Methods

Gets this element access expression's argument expression or undefined if none exists.

getArgumentExpressionOrThrow(message?: string | (() => string)): Expression<ts.Expression>

Gets this element access expression's argument expression or throws if none exists.