Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/ts_morph.d.ts>ImportClause

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

Methods

Gets the default import or returns undefined if it doesn't exist.

Gets the default import or throws if it doesn't exit.

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.

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.