Skip to content

Commit

Permalink
Add a test/fix for another edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Apr 3, 2022
1 parent 45beb25 commit 5873f52
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/converter/converter.ts
Expand Up @@ -189,7 +189,10 @@ export class Converter extends ChildableComponent<
ts.SyntaxKind.PropertyAssignment,
ts.SyntaxKind.PropertySignature,
],
[ReflectionKind.Variable]: [ts.SyntaxKind.VariableDeclaration],
[ReflectionKind.Variable]: [
ts.SyntaxKind.VariableDeclaration,
ts.SyntaxKind.ExportAssignment,
],
[ReflectionKind.Function]: [
ts.SyntaxKind.FunctionDeclaration,
ts.SyntaxKind.VariableDeclaration,
Expand Down
2 changes: 2 additions & 0 deletions src/test/converter2/issues/gh1903b.ts
@@ -0,0 +1,2 @@
/** @hidden */
export default 123;
7 changes: 7 additions & 0 deletions src/test/issueTests.ts
Expand Up @@ -363,4 +363,11 @@ export const issueTests: {
["typedoc"]
);
},

gh1903b(project) {
equal(
Object.values(project.reflections).map((r) => r.name),
["typedoc"]
);
},
};

0 comments on commit 5873f52

Please sign in to comment.