fix(core): update
This commit is contained in:
@@ -3,7 +3,6 @@ import * as plugins from './smartfuzzy.plugins';
|
||||
export class ObjectSorter<T> {
|
||||
public objectDictionary: T[];
|
||||
|
||||
|
||||
constructor(objectDictionaryArg: T[] = []) {
|
||||
this.objectDictionary = objectDictionaryArg;
|
||||
}
|
||||
@@ -16,11 +15,10 @@ export class ObjectSorter<T> {
|
||||
distance: 100,
|
||||
maxPatternLength: 32,
|
||||
minMatchCharLength: 1,
|
||||
keys: objectKeysArg
|
||||
keys: objectKeysArg,
|
||||
};
|
||||
const fuse = new plugins.fuseJs<T>(this.objectDictionary, fuseOptions);
|
||||
const result = fuse.search(stringArg);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user