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://dotland.deno.dev/x/ts_morph@17.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.