Skip to content

Commit 5873f52

Browse files
committed
Add a test/fix for another edge case
1 parent 45beb25 commit 5873f52

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/lib/converter/converter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ export class Converter extends ChildableComponent<
189189
ts.SyntaxKind.PropertyAssignment,
190190
ts.SyntaxKind.PropertySignature,
191191
],
192-
[ReflectionKind.Variable]: [ts.SyntaxKind.VariableDeclaration],
192+
[ReflectionKind.Variable]: [
193+
ts.SyntaxKind.VariableDeclaration,
194+
ts.SyntaxKind.ExportAssignment,
195+
],
193196
[ReflectionKind.Function]: [
194197
ts.SyntaxKind.FunctionDeclaration,
195198
ts.SyntaxKind.VariableDeclaration,

src/test/converter2/issues/gh1903b.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/** @hidden */
2+
export default 123;

src/test/issueTests.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,11 @@ export const issueTests: {
363363
["typedoc"]
364364
);
365365
},
366+
367+
gh1903b(project) {
368+
equal(
369+
Object.values(project.reflections).map((r) => r.name),
370+
["typedoc"]
371+
);
372+
},
366373
};

0 commit comments

Comments
 (0)