Skip to content

Commit

Permalink
fix(typescript): fix search typings
Browse files Browse the repository at this point in the history
Fixes #527
  • Loading branch information
krisk committed Jan 5, 2021
1 parent fffc826 commit 94766b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ declare class Fuse<T> {
* @param options `Fuse.FuseSearchOptions`
* @returns An array of search results
*/
search<T>(
search<R = T>(
pattern: string | Fuse.Expression,
options?: Fuse.FuseSearchOptions
): Fuse.FuseResult<T>[]
): Fuse.FuseResult<R>[]

setCollection(docs: ReadonlyArray<T>, index?: Fuse.FuseIndex<T>): void

Expand Down

0 comments on commit 94766b2

Please sign in to comment.