Skip to main content
Module

x/ts_morph/ts_morph.d.ts>NamespaceImport

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class NamespaceImport
extends NamespaceImportBase<ts.NamespaceImport>
import { NamespaceImport } from "https://deno.land/x/ts_morph@22.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.