Skip to main content
Module

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

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

Methods

getNameNode(): Identifier | undefined

Gets the name node if it exists.

getNameNodeOrThrow(message?: string | (() => string)): Identifier

Gets the name node if it exists, or throws.

getName(): string | undefined

Gets the name if it exists.

getNameOrThrow(message?: string | (() => string)): string

Gets the name if it exists, or throws.

removeName(): this

Removes the name from the node.