Skip to main content
Module

x/ts_morph/ts_morph.d.ts>NameableNodeSpecific

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface NameableNodeSpecific
import { type NameableNodeSpecific } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

getNameNode(): Identifier | undefined

Gets the name node if it exists.

getNameNodeOrThrow(): Identifier

Gets the name node if it exists, or throws.

getName(): string | undefined

Gets the name if it exists.

getNameOrThrow(): string

Gets the name if it exists, or throws.

removeName(): this

Removes the name from the node.