mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-27 16:09:01 +03:00
chore(deps): update some tools dependencies
This commit is contained in:
1 parent
2ff77eefc0
commit
a3ac98993b
10 files changed
+838
-964
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { type MaybeRef, get } from '@vueuse/core';
|
||||
import Fuse from 'fuse.js';
|
||||
import Fuse, { type IFuseOptions } from 'fuse.js';
|
||||
import { computed } from 'vue';
|
||||
|
||||
export { useFuzzySearch };
|
||||
@@ -11,7 +11,7 @@ function useFuzzySearch<Data>({
|
||||
}: {
|
||||
search: MaybeRef<string>
|
||||
data: Data[]
|
||||
options?: Fuse.IFuseOptions<Data> & { filterEmpty?: boolean }
|
||||
options?: IFuseOptions<Data> & { filterEmpty?: boolean }
|
||||
}) {
|
||||
const fuse = new Fuse(data, options);
|
||||
const filterEmpty = options.filterEmpty ?? true;
|
||||
|
||||
Reference in new issue
Block a user