File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ declare namespace rustdoc {
397397 */
398398 type RawSearchIndexCrate = {
399399 doc : string ,
400- a : Object ,
400+ a : { [ key : string ] : number [ ] } ,
401401 n : Array < string > ,
402402 t : string ,
403403 D : string ,
Original file line number Diff line number Diff line change @@ -2269,16 +2269,14 @@ class DocSearch {
22692269 continue ;
22702270 }
22712271
2272- // @ts -expect-error
2272+ /** @type { number[] } */
22732273 let currentNameAliases ;
22742274 if ( currentCrateAliases . has ( alias_name ) ) {
22752275 currentNameAliases = currentCrateAliases . get ( alias_name ) ;
22762276 } else {
22772277 currentNameAliases = [ ] ;
2278- // @ts -expect-error
22792278 currentCrateAliases . set ( alias_name , currentNameAliases ) ;
22802279 }
2281- // @ts -expect-error
22822280 for ( const local_alias of aliases [ alias_name ] ) {
22832281 currentNameAliases . push ( local_alias + currentIndex ) ;
22842282 }
You can’t perform that action at this time.
0 commit comments