@@ -1187,7 +1187,8 @@ function initSearch(rawSearchIndex) {
1187
1187
*
1188
1188
* @returns string?
1189
1189
*/
1190
- function formatResultTypeSignature ( type ) {
1190
+ function formatResultTypeSignature ( row ) {
1191
+ const type = row . type ;
1191
1192
if ( type === null ) {
1192
1193
return null ;
1193
1194
}
@@ -1268,7 +1269,8 @@ function initSearch(rawSearchIndex) {
1268
1269
} else {
1269
1270
push ( fnType . name , fnType . highlighted ) ;
1270
1271
if ( fnType . generics && fnType . generics . length > 0 &&
1271
- ( fnType . generics . some ( isTransitivelyHighlighted ) || fnType . implDisambiguator !== null )
1272
+ ( fnType . generics . some ( isTransitivelyHighlighted )
1273
+ || row . implDisambiguator !== null )
1272
1274
) {
1273
1275
pushNotHighlighted ( "<" ) ;
1274
1276
formatTypeList ( fnType . generics , ", " ) ;
@@ -1713,7 +1715,7 @@ function initSearch(rawSearchIndex) {
1713
1715
) {
1714
1716
// [] matches primitive:array or primitive:slice
1715
1717
// 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 ) {
1717
1719
return false ;
1718
1720
}
1719
1721
// If the query elem has generics, and the function doesn't,
@@ -1982,7 +1984,7 @@ function initSearch(rawSearchIndex) {
1982
1984
}
1983
1985
}
1984
1986
const displayTypeSignature = isType ?
1985
- formatResultTypeSignature ( searchIndex [ id ] . type ) :
1987
+ formatResultTypeSignature ( searchIndex [ id ] ) :
1986
1988
null ;
1987
1989
results . set ( fullId , {
1988
1990
id : id ,
0 commit comments