fix(CommandPalette): typecheck

This commit is contained in:
Benjamin Canac
2023-04-07 19:23:25 +02:00
parent f845e89a76
commit cfce1524b2

View File

@@ -89,7 +89,7 @@ const label = computed(() => {
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) {
return ''
}