import { ImportClause } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Methods
getDefaultImport(): Identifier | undefined
Gets the default import or returns undefined if it doesn't exist.
getDefaultImportOrThrow(message?: string | (() => string)): Identifier
Gets the default import or throws if it doesn't exit.
getNamedBindings(): NamespaceImport | NamedImports | undefined
Gets the named bindings of the import clause or returns undefined if it doesn't exist.
getNamedBindingsOrThrow(message?: string | (() => string)): NamespaceImport | NamedImports
Gets the named bindings of the import clause or throws if it doesn't exist.
getNamespaceImportOrThrow(message?: string | (() => string)): Identifier
Gets the namespace import if it exists or throws.
getParent(): NodeParentType<ts.ImportClause>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ImportClause>>