UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

30 lines 1.1 kB
import type { ReflectedRootNode } from '../reflected-node.js'; import type { ProjectContext } from '../project-context.js'; import type { Export } from '../models/export.js'; import { ExportKind } from '../models/export.js'; import { RootNodeType } from '../models/node.js'; import ts from 'typescript'; /** * Represents the reflected node of a namespace export declaration. * For example: `export * as bar from './foo.js'` */ export declare class NamespaceExportNode implements ReflectedRootNode<Export, ts.ExportDeclaration> { private readonly _node; private readonly _context; constructor(node: ts.ExportDeclaration, context: ProjectContext); getName(): string; getOriginalName(): string; getContext(): ProjectContext; getKind(): ExportKind; getNodeType(): RootNodeType; getModule(): string; getTSNode(): ts.ExportDeclaration; isTypeOnly(): boolean; /** * Serializes the reflected node * * @returns The reflected node as a serializable object */ serialize(): Export; } //# sourceMappingURL=namespace-export-node.d.ts.map