Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.10.0/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.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<InitializerExpressionGetableNodeExtensionType>