From fc951e2980062887a4b9e4a708be960854b265ec Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 26 Oct 2022 12:59:41 +0200 Subject: [PATCH] chore(CommandPalette): improve types --- src/runtime/types/command-palette.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index 360858477b..b62690738c 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -1,6 +1,6 @@ import type { UseFuseOptions } from '@vueuse/integrations/useFuse' +import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js' import type { Avatar } from './avatar' - export interface Command { id: string | number prefix?: string @@ -11,6 +11,9 @@ export interface Command { chip?: string disabled?: boolean shortcuts?: string[] + group?: string + score?: number + matches?: (FuseSortFunctionMatch | FuseSortFunctionMatchList)[] } export interface Group {