Module

x/ts_morph/mod.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://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";

Methods

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

getExternalModuleReferenceSourceFileOrThrow(message?: string | (() => string)): SourceFile

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(message?: string | (() => string)): 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.