We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a4dbf commit 5e63326Copy full SHA for 5e63326
src/librustdoc/html/static/js/main.js
@@ -588,7 +588,6 @@ function preLoadCss(cssUrl) {
588
document.addEventListener("keydown", handleShortcut);
589
590
function addSidebarItems() {
591
- // @ts-expect-error
592
if (!window.SIDEBAR_ITEMS) {
593
return;
594
}
src/librustdoc/html/static/js/rustdoc.d.ts
@@ -7,6 +7,8 @@ declare global {
7
interface Window {
8
/** Make the current theme easy to find */
9
currentTheme: HTMLLinkElement|null;
10
+ /** Generated in `render/context.rs` */
11
+ SIDEBAR_ITEMS?: { [key: string]: string[] };
12
/** Used by the popover tooltip code. */
13
RUSTDOC_TOOLTIP_HOVER_MS: number;
14
0 commit comments