Skip to content

Commit

Permalink
improve type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaong committed Sep 18, 2020
1 parent 5a3db26 commit 3447f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class MiniSearch<T = any> {
const combinedResults: RawResult = this.combineResults(results, options.combineWith)

return Object.entries(combinedResults)
.reduce((results: { id: any, terms: string[], score: number, match: MatchInfo }[], [docId, { score, match, terms }]) => {
.reduce((results: SearchResult[], [docId, { score, match, terms }]) => {
const result = {
id: this._documentIds[docId],
terms: uniq(terms),
Expand Down

0 comments on commit 3447f02

Please sign in to comment.