We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f93c76b commit 4fed0bdCopy full SHA for 4fed0bd
src/lib/converter/nodes/module.ts
@@ -24,7 +24,9 @@ export class ModuleConverter extends ConverterNodeComponent<ts.ModuleDeclaration
24
convert(context: Context, node: ts.ModuleDeclaration): Reflection | undefined {
25
const reflection = context.isInherit && context.inheritParent === node
26
? <DeclarationReflection> context.scope
27
- : createDeclaration(context, node, ReflectionKind.Namespace);
+ : createDeclaration(context, node, node.name.kind === ts.SyntaxKind.StringLiteral
28
+ ? ReflectionKind.Module
29
+ : ReflectionKind.Namespace);
30
context.withScope(reflection, () => {
31
if (node.body) {
32
this.owner.convertNode(context, node.body);
0 commit comments