File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/lib/output/themes/default/assets/typedoc/services Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
### Bug Fixes
4
4
5
5
- Actually fixed ` @category ` tag incorrectly appearing on function types if used on a type alias, #1745 .
6
+ - Fix error in console when a page contains no documentation items.
6
7
7
8
## v0.22.7 (2021-10-25)
8
9
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ export class Viewport extends EventTarget {
39
39
40
40
/**
41
41
* The sticky side nav that contains members of the current page.
42
+ * Might not present on the home page if the project uses `entryPointStrategy` set to `Expand`.
42
43
*/
43
- secondaryNav : HTMLElement ;
44
+ secondaryNav ? : HTMLElement ;
44
45
45
46
/**
46
47
* Create new Viewport instance.
@@ -51,7 +52,7 @@ export class Viewport extends EventTarget {
51
52
this . toolbar = < HTMLDivElement > (
52
53
document . querySelector ( ".tsd-page-toolbar" )
53
54
) ;
54
- this . secondaryNav = < HTMLElement > (
55
+ this . secondaryNav = < HTMLElement | undefined > (
55
56
document . querySelector ( ".tsd-navigation.secondary" )
56
57
) ;
57
58
@@ -123,7 +124,7 @@ export class Viewport extends EventTarget {
123
124
this . showToolbar = this . lastY >= this . scrollTop || this . scrollTop <= 0 ;
124
125
if ( isShown !== this . showToolbar ) {
125
126
this . toolbar . classList . toggle ( "tsd-page-toolbar--hide" ) ;
126
- this . secondaryNav . classList . toggle ( "tsd-navigation--toolbar-hide" ) ;
127
+ this . secondaryNav ? .classList . toggle ( "tsd-navigation--toolbar-hide" ) ;
127
128
}
128
129
this . lastY = this . scrollTop ;
129
130
}
You can’t perform that action at this time.
0 commit comments