File tree 2 files changed +2
-4
lines changed
src/librustdoc/html/static/js
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ declare namespace rustdoc {
397
397
*/
398
398
type RawSearchIndexCrate = {
399
399
doc : string ,
400
- a : Object ,
400
+ a : { [ key : string ] : number [ ] } ,
401
401
n : Array < string > ,
402
402
t : string ,
403
403
D : string ,
Original file line number Diff line number Diff line change @@ -2269,16 +2269,14 @@ class DocSearch {
2269
2269
continue ;
2270
2270
}
2271
2271
2272
- // @ts -expect-error
2272
+ /** @type { number[] } */
2273
2273
let currentNameAliases ;
2274
2274
if ( currentCrateAliases . has ( alias_name ) ) {
2275
2275
currentNameAliases = currentCrateAliases . get ( alias_name ) ;
2276
2276
} else {
2277
2277
currentNameAliases = [ ] ;
2278
- // @ts -expect-error
2279
2278
currentCrateAliases . set ( alias_name , currentNameAliases ) ;
2280
2279
}
2281
- // @ts -expect-error
2282
2280
for ( const local_alias of aliases [ alias_name ] ) {
2283
2281
currentNameAliases . push ( local_alias + currentIndex ) ;
2284
2282
}
You can’t perform that action at this time.
0 commit comments