mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
chore(CommandPalette): improve fuse.js import types .ts file
This commit is contained in:
@@ -74,7 +74,7 @@ import { computed, defineComponent } from 'vue'
|
||||
import type { PropType } from 'vue'
|
||||
import { ComboboxOption as HComboboxOption, provideUseId } from '@headlessui/vue'
|
||||
import { UIcon, UAvatar, UKbd } from '#components'
|
||||
import type { Group } from '../../types'
|
||||
import type { Command, Group } from '../../types'
|
||||
import { commandPalette } from '#ui/ui.config'
|
||||
import { useId } from '#imports'
|
||||
|
||||
@@ -118,7 +118,7 @@ export default defineComponent({
|
||||
return typeof label === 'function' ? label(props.query) : label
|
||||
})
|
||||
|
||||
function highlight (text: string, { indices, value }: { indices: number[][], value: string }): string {
|
||||
function highlight (text: string, { indices, value }: Command['matches'][number]): string {
|
||||
if (text === value) {
|
||||
return ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user