mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +01:00
fix(CommandPalette): typecheck
This commit is contained in:
@@ -89,7 +89,7 @@ const label = computed(() => {
|
|||||||
return typeof label === 'function' ? label(props.query) : label
|
return typeof label === 'function' ? label(props.query) : label
|
||||||
})
|
})
|
||||||
|
|
||||||
function highlight (text, { indices, value }: { indices: number[][], value:string }): string {
|
function highlight (text: string, { indices, value }: { indices: number[][], value:string }): string {
|
||||||
if (text === value) {
|
if (text === value) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user