Removed unnecessary cast in fuse search service

This commit is contained in:
Rohan Sircar 2020-01-09 12:54:45 +05:30
parent 220a071ecc
commit 492582898f

View File

@ -26,7 +26,7 @@ export class FuseSearchService<T> implements SearchService<T> {
// const fuse = new Fuse<T, Fuse.FuseOptions<any>>(list, this._params); // const fuse = new Fuse<T, Fuse.FuseOptions<any>>(list, this._params);
this._fuse.setCollection(list); this._fuse.setCollection(list);
// fuse.search(searchTerm); // fuse.search(searchTerm);
return this._fuse.search(searchTerm) as T[]; return this._fuse.search(searchTerm);
} }