UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

30 lines 1.08 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 type ts from 'typescript'; /** * Represents the reflected node of an export assignment. * * For example `export default foo` or `export = class Foo {}`. */ export declare class ExportAssignmentNode implements ReflectedRootNode<Export, ts.ExportAssignment> { private readonly _node; private readonly _context; constructor(node: ts.ExportAssignment, context: ProjectContext); getName(): string; getOriginalName(): string; getNodeType(): RootNodeType; getContext(): ProjectContext; getKind(): ExportKind; isTypeOnly(): boolean; getTSNode(): ts.ExportAssignment; /** * Serializes the reflected node * * @returns The reflected node as a serializable object */ serialize(): Export; } //# sourceMappingURL=export-assignment-node.d.ts.map