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

x/ts_morph/ts_morph.d.ts>ExportGetableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ExportGetableNode
import { type ExportGetableNode } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

Methods

hasExportKeyword(): boolean

If the node has the export keyword.

getExportKeyword(): Node | undefined

Gets the export keyword or undefined if none exists.

getExportKeywordOrThrow(): 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(): 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/ts_morph@16.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ExportGetableNodeExtensionType>