Skip to main content
Module

x/ts_morph/mod.ts>ElementAccessExpression

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class ElementAccessExpression
extends ElementAccessExpressionBase<T>
import { ElementAccessExpression } from "https://deno.land/x/ts_morph@22.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.