@@ -1187,7 +1187,8 @@ function initSearch(rawSearchIndex) {
11871187 *
11881188 * @returns string?
11891189 */
1190- function formatResultTypeSignature ( type ) {
1190+ function formatResultTypeSignature ( row ) {
1191+ const type = row . type ;
11911192 if ( type === null ) {
11921193 return null ;
11931194 }
@@ -1268,7 +1269,8 @@ function initSearch(rawSearchIndex) {
12681269 } else {
12691270 push ( fnType . name , fnType . highlighted ) ;
12701271 if ( fnType . generics && fnType . generics . length > 0 &&
1271- ( fnType . generics . some ( isTransitivelyHighlighted ) || fnType . implDisambiguator !== null )
1272+ ( fnType . generics . some ( isTransitivelyHighlighted )
1273+ || row . implDisambiguator !== null )
12721274 ) {
12731275 pushNotHighlighted ( "<" ) ;
12741276 formatTypeList ( fnType . generics , ", " ) ;
@@ -1713,7 +1715,7 @@ function initSearch(rawSearchIndex) {
17131715 ) {
17141716 // [] matches primitive:array or primitive:slice
17151717 // if it matches, then we're fine, and this is an appropriate match candidate
1716- } else if ( fnType . id !== queryElem . id ) {
1718+ } else if ( fnType . id !== queryElem . id || queryElem . id === null ) {
17171719 return false ;
17181720 }
17191721 // If the query elem has generics, and the function doesn't,
@@ -1982,7 +1984,7 @@ function initSearch(rawSearchIndex) {
19821984 }
19831985 }
19841986 const displayTypeSignature = isType ?
1985- formatResultTypeSignature ( searchIndex [ id ] . type ) :
1987+ formatResultTypeSignature ( searchIndex [ id ] ) :
19861988 null ;
19871989 results . set ( fullId , {
19881990 id : id ,
0 commit comments