Skip to main content
Module

x/ts_morph/ts_morph.d.ts>NamedImports

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class NamedImports
extends NamedImportsBase<ts.NamedImports>
import { NamedImports } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";

Methods

getElements(): ImportSpecifier[]

Gets the import specifiers.

getParent(): NodeParentType<ts.NamedImports>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.NamedImports>>