Module

x/ts_morph/ts_morph.d.ts>NamespaceImport

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class NamespaceImport
extends NamespaceImportBase<ts.NamespaceImport>
import { NamespaceImport } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";

Methods

getName(): string

Gets the name of the namespace import.

Gets the namespace import's name node.

getParent(): NodeParentType<ts.NamespaceImport>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.NamespaceImport>>
setName(name: string): this

Sets the name of the namespace import.