Skip to main content
Module

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

Compile your Deno project to run on Node.js.
Go to Latest
interface ExpressionableNode
import { type ExpressionableNode } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

getExpression(): Expression | undefined

Gets the expression if it exists or returns undefined.

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.

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

Type Parameters

T extends Constructor<ExpressionableNodeExtensionType>