Module

x/ts_morph/mod.ts>ExternalModuleReference

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ExternalModuleReference
extends ExternalModuleReferenceBase<ts.ExternalModuleReference>
import { ExternalModuleReference } from "https://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";

Methods

getParent(): NodeParentType<ts.ExternalModuleReference>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ExternalModuleReference>>

Gets the source file referenced or returns undefined if it can't find it.

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

Gets the source file referenced or throws if it can't find it.

isRelative(): boolean

Gets if the external module reference is relative.