import { type BaseExpressionedNode } from "https://deno.land/x/ts_morph@16.0.0/mod.ts";
Type Parameters
TExpression extends Node
Methods
getExpression(): TExpression
Gets the expression.
getExpressionIfKind<TKind extends SyntaxKind>(kind: TKind): KindToExpressionMappings[TKind] | undefined
Gets the expression if its of a certain kind or returns undefined.
getExpressionIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind): KindToExpressionMappings[TKind]
Gets the expression if its of a certain kind or throws.
setExpression(textOrWriterFunction: string | WriterFunction): this
Sets the expression.
import { BaseExpressionedNode } from "https://deno.land/x/ts_morph@16.0.0/mod.ts";
Type Parameters
T extends Constructor<ExpressionedNodeExtensionType>
optional
TExpression extends Node = CompilerNodeToWrappedType<InstanceOf<T>["compilerNode"]>Parameters
Base: T