Skip to content

Commit db92b29

Browse files
committed
typecheck tooltipBlurHandler
1 parent 596e9dd commit db92b29

File tree

1 file changed

+3
-1
lines changed
  • src/librustdoc/html/static/js

1 file changed

+3
-1
lines changed

src/librustdoc/html/static/js/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,9 @@ function preLoadCss(cssUrl) {
14581458
}
14591459
}
14601460

1461-
// @ts-expect-error
1461+
/**
1462+
* @param {Event & { relatedTarget: Node }} event
1463+
*/
14621464
function tooltipBlurHandler(event) {
14631465
if (window.CURRENT_TOOLTIP_ELEMENT &&
14641466
!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement) &&

0 commit comments

Comments
 (0)