Skip to main content
Module

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

Compile your Deno project to run on Node.js.
Go to Latest
class BindingElement
extends BindingElementBase<ts.BindingElement>
import { BindingElement } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

getParent(): NodeParentType<ts.BindingElement>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.BindingElement>>

Gets binding element's property name node or returns undefined if not found.

For example in const { a: b } = { a: 5 }, a would be the property name.

getPropertyNameNodeOrThrow(message?: string | (() => string)): PropertyName

Gets binding element's property name node or throws if not found.

For example in const { a: b } = { a: 5 }, a would be the property name.