Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>BaseExpressionedNode

Compile your Deno project to run on Node.js.
Go to Latest
interface BaseExpressionedNode
import { type BaseExpressionedNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.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.

function BaseExpressionedNode
import { BaseExpressionedNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<ExpressionedNodeExtensionType>
optional
TExpression extends Node = CompilerNodeToWrappedType<InstanceOf<T>["compilerNode"]>