Skip to content

Commit fbe939a

Browse files
committed
Only display hierarchy if useful
1 parent f1a3ffa commit fbe939a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Fixed an infinite loop when `skipLibCheck` is used to ignore some compiler errors, #2438.
1111
- `@example` tag titles will now be rendered in the example heading, #2440.
1212
- Correctly handle transient symbols in `@namespace`-created namespaces, #2444.
13+
- TypeDoc no longer displays the "Hierarchy" section if there is no inheritance hierarchy to display.
1314

1415
### Thanks!
1516

src/lib/converter/plugins/TypePlugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ export class TypePlugin extends ConverterComponent {
158158
push(reflection.extendedBy);
159159
}
160160

161-
reflection.typeHierarchy = root;
161+
// No point setting up a hierarchy if there is no hierarchy to display
162+
if (root.next) {
163+
reflection.typeHierarchy = root;
164+
}
162165
});
163166
}
164167
}

0 commit comments

Comments
 (0)