Skip to content

Commit

Permalink
Add setCollection method to Fuse types (#258)
Browse files Browse the repository at this point in the history
This allows to swap lists at runtime.

Thanks!
  • Loading branch information
peterblazejewicz authored and krisk committed Oct 19, 2018
1 parent fbe8d40 commit f738501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export as namespace Fuse;
declare class Fuse<T> {
constructor(list: ReadonlyArray<T>, options?: Fuse.FuseOptions<T>)
search(pattern: string): T[];

setCollection(list: ReadonlyArray<T>): ReadonlyArray<T>;
}

declare namespace Fuse {
Expand Down

0 comments on commit f738501

Please sign in to comment.