Skip to main content
Module

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

Compile your Deno project to run on Node.js.
Go to Latest
interface ExportGetableNode
import { type ExportGetableNode } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

hasExportKeyword(): boolean

If the node has the export keyword.

getExportKeyword(): Node | undefined

Gets the export keyword or undefined if none exists.

getExportKeywordOrThrow(message?: string | (() => string)): Node

Gets the export keyword or throws if none exists.

hasDefaultKeyword(): boolean

If the node has the default keyword.

getDefaultKeyword(): Node | undefined

Gets the default keyword or undefined if none exists.

getDefaultKeywordOrThrow(message?: string | (() => string)): Node

Gets the default keyword or throws if none exists.

isExported(): boolean

Gets if the node is exported from a namespace, is a default export, or is a named export.

isDefaultExport(): boolean

Gets if this node is a default export of a file.

isNamedExport(): boolean

Gets if this node is a named export of a file.

function ExportGetableNode
import { ExportGetableNode } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Type Parameters

T extends Constructor<ExportGetableNodeExtensionType>