File tree 2 files changed +24
-17
lines changed
src/lib/output/themes/default/partials 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 9
9
10
10
- TypeDoc will now prefer comments on variable declarations over signature comments, #2042 .
11
11
- Fixed double rendering of "Type Parameters" header, #2054 .
12
+ - Fixed double rendering of "Hierarchy" header, #2053 .
12
13
- Removed unused
` widgets.png ` and
` [email protected] ` files from generated assets folder.
13
14
14
15
## v0.23.14 (2022-09-03)
Original file line number Diff line number Diff line change @@ -2,20 +2,26 @@ import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext";
2
2
import { JSX } from "../../../../utils" ;
3
3
import type { DeclarationHierarchy } from "../../../../models" ;
4
4
5
- export const hierarchy = ( context : DefaultThemeRenderContext , props : DeclarationHierarchy | undefined ) => (
6
- < >
7
- { ! ! props && (
8
- < section class = "tsd-panel tsd-hierarchy" >
9
- < h4 > Hierarchy</ h4 >
10
- < ul class = "tsd-hierarchy" >
11
- { props . types . map ( ( item , i , l ) => (
12
- < li >
13
- { props . isTarget ? < span class = "target" > { item . toString ( ) } </ span > : context . type ( item ) }
14
- { i === l . length - 1 && ! ! props . next && context . hierarchy ( props . next ) }
15
- </ li >
16
- ) ) }
17
- </ ul >
18
- </ section >
19
- ) }
20
- </ >
21
- ) ;
5
+ export function hierarchy ( context : DefaultThemeRenderContext , props : DeclarationHierarchy | undefined ) {
6
+ if ( ! props ) return ;
7
+
8
+ return (
9
+ < section class = "tsd-panel tsd-hierarchy" >
10
+ < h4 > Hierarchy</ h4 >
11
+ { hierarchyList ( context , props ) }
12
+ </ section >
13
+ ) ;
14
+ }
15
+
16
+ function hierarchyList ( context : DefaultThemeRenderContext , props : DeclarationHierarchy ) {
17
+ return (
18
+ < ul class = "tsd-hierarchy" >
19
+ { props . types . map ( ( item , i , l ) => (
20
+ < li >
21
+ { props . isTarget ? < span class = "target" > { item . toString ( ) } </ span > : context . type ( item ) }
22
+ { i === l . length - 1 && ! ! props . next && hierarchyList ( context , props . next ) }
23
+ </ li >
24
+ ) ) }
25
+ </ ul >
26
+ ) ;
27
+ }
You can’t perform that action at this time.
0 commit comments