Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ImportEqualsDeclaration

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

Methods

Gets the source file referenced in the external module reference or returns undefined if it doesn't exist.

Gets the source file referenced in the external module reference or throws if it doesn't exist.

Gets the module reference of the import equals declaration.

getParent(): NodeParentType<ts.ImportEqualsDeclaration>
getParentOrThrow(): NonNullable<NodeParentType<ts.ImportEqualsDeclaration>>

Gets if the external module reference is relative.

isTypeOnly(): boolean

Gets if this import equals declaration is type only.

setExternalModuleReference(externalModuleReference: string): this

Sets the external module reference.

Sets the external module reference.

setIsTypeOnly(value: boolean): this

Sets if this import equals declaration is type only.