From cfce1524b209212d9ce635b61376ff0d6bc3601b Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 7 Apr 2023 19:23:25 +0200 Subject: [PATCH] fix(CommandPalette): typecheck --- src/runtime/components/navigation/CommandPaletteGroup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/navigation/CommandPaletteGroup.vue b/src/runtime/components/navigation/CommandPaletteGroup.vue index 506e502065..08239d4dff 100644 --- a/src/runtime/components/navigation/CommandPaletteGroup.vue +++ b/src/runtime/components/navigation/CommandPaletteGroup.vue @@ -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 '' }