import { type ExpressionableNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";
Methods
getExpressionOrThrow(message?: string | (() => string)): 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.
import { ExpressionableNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";
Type Parameters
T extends Constructor<ExpressionableNodeExtensionType>
Parameters
Base: T