Skip to content

Commit

Permalink
Only display hierarchy if useful
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 26, 2023
1 parent f1a3ffa commit fbe939a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed an infinite loop when `skipLibCheck` is used to ignore some compiler errors, #2438.
- `@example` tag titles will now be rendered in the example heading, #2440.
- Correctly handle transient symbols in `@namespace`-created namespaces, #2444.
- TypeDoc no longer displays the "Hierarchy" section if there is no inheritance hierarchy to display.

### Thanks!

Expand Down
5 changes: 4 additions & 1 deletion src/lib/converter/plugins/TypePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ export class TypePlugin extends ConverterComponent {
push(reflection.extendedBy);
}

reflection.typeHierarchy = root;
// No point setting up a hierarchy if there is no hierarchy to display
if (root.next) {
reflection.typeHierarchy = root;
}
});
}
}

0 comments on commit fbe939a

Please sign in to comment.