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
Latest
interface NameableNodeSpecific
import { type NameableNodeSpecific } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.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.