Skip to main content
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

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

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

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

isRelative(): boolean

Gets if the external module reference is relative.