fix(core): update

This commit is contained in:
2021-10-03 17:12:02 +02:00
parent cbc72cd55b
commit cb5a24320c
10 changed files with 25536 additions and 429 deletions

View File

@@ -8,7 +8,7 @@ export class ObjectSorter<T> {
this.objectDictionary = objectDictionaryArg;
}
sort(stringArg: string, objectKeysArg: string[]): T[] {
sort(stringArg: string, objectKeysArg: string[]): plugins.fuseJs.FuseResult<T>[] {
const fuseOptions = {
shouldSort: true,
threshold: 0.6,
@@ -18,7 +18,7 @@ export class ObjectSorter<T> {
minMatchCharLength: 1,
keys: objectKeysArg
};
const fuse = new plugins.fuseJs(this.objectDictionary, fuseOptions);
const fuse = new plugins.fuseJs<T>(this.objectDictionary, fuseOptions);
const result = fuse.search(stringArg);
return result;
}