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

x/deno2node/src/deps.deno.ts>ImportEqualsDeclaration

Compile your Deno project to run on Node.js.
Go to Latest
class ImportEqualsDeclaration
extends ImportEqualsDeclarationBase<ts.ImportEqualsDeclaration>
import { ImportEqualsDeclaration } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.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.