(filePath: string, score: number)
| 39 | } |
| 40 | |
| 41 | function makeSearchResult(filePath: string, score: number): SearchResult { |
| 42 | return { |
| 43 | filePath, |
| 44 | score |
| 45 | } as SearchResult; |
| 46 | } |
| 47 | |
| 48 | function setupSearcherWithResultsByQuery( |
| 49 | byQuery: Record<string, SearchResult[]>, |