rustdoc-search: use ES6 Map for Result instead of Object

This commit is contained in:
Michael Howell 2023-04-13 17:05:12 -07:00
parent 8642c96a33
commit 53f499d475
2 changed files with 40 additions and 21 deletions

View file

@ -65,6 +65,11 @@ let Row;
*/
let ResultsTable;
/**
* @typedef {Map<String, ResultObject>}
*/
let Results;
/**
* @typedef {{
* desc: string,
@ -80,7 +85,7 @@ let ResultsTable;
* ty: number,
* }}
*/
let Results;
let ResultObject;
/**
* A pair of [inputs, outputs], or 0 for null. This is stored in the search index.