UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

28 lines 1.07 kB
import type { ReflectedRootNode } from '../reflected-node.js'; import type { ProjectContext } from '../project-context.js'; import type { Import } from '../models/import.js'; import { ImportKind } from '../models/import.js'; import { RootNodeType } from '../models/node.js'; import type ts from 'typescript'; /** * Represents the reflected node of a side effect import declaration. * For example: `import './foo.js'` */ export declare class SideEffectImportNode implements ReflectedRootNode<Import, ts.ImportDeclaration> { private readonly _node; private readonly _context; constructor(node: ts.ImportDeclaration, context: ProjectContext); getTSNode(): ts.ImportDeclaration; getNodeType(): RootNodeType; getKind(): ImportKind.SideEffect; getContext(): ProjectContext; getImportPath(): string; isBareModuleSpecifier(): boolean; /** * Serializes the reflected node * * @returns The reflected node as a serializable object */ serialize(): Import; } //# sourceMappingURL=side-effect-import-node.d.ts.map