Skip to main content
Module

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

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

Methods

hasInitializer(): boolean

Gets if node has an initializer.

getInitializer(): Expression | undefined

Gets the initializer.

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

Gets the initializer if it's a certain kind or throws.

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

Gets the initializer if it's a certain kind.

getInitializerOrThrow(message?: string | (() => string)): Expression

Gets the initializer or throw.

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

Type Parameters

T extends Constructor<InitializerExpressionGetableNodeExtensionType>