Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ExpressionableNode

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

Methods

getExpression(): Expression | undefined

Gets the expression if it exists or returns undefined.

getExpressionOrThrow(): Expression

Gets the expression if it exists or throws.

getExpressionIfKind<TKind extends SyntaxKind>(kind: TKind): KindToExpressionMappings[TKind] | undefined

Gets the expression if it is of the specified syntax kind or returns undefined.

getExpressionIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind): KindToExpressionMappings[TKind]

Gets the expression if it is of the specified syntax kind or throws.

function ExpressionableNode
import { ExpressionableNode } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ExpressionableNodeExtensionType>