import { ImportClause } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";
Methods
getDefaultImport(): Identifier | undefined
Gets the default import or returns undefined if it doesn't exist.
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.
Gets the named bindings of the import clause or throws if it doesn't exist.
Gets the namespace import identifier, if it exists.
getNamespaceImport(): Identifier | undefined
Gets the namespace import identifier, if it exists.
Gets the namespace import if it exists or throws.
getParent(): NodeParentType<ts.ImportClause>
getParentOrThrow(): NonNullable<NodeParentType<ts.ImportClause>>
isTypeOnly(): boolean
Gets if this import clause is type only.
setIsTypeOnly(value: boolean): this
Sets if this import declaration is type only.