chore(CommandPalette): improve types

This commit is contained in:
Benjamin Canac
2022-10-26 12:59:41 +02:00
parent 08ff6e6c09
commit fc951e2980

View File

@@ -1,6 +1,6 @@
import type { UseFuseOptions } from '@vueuse/integrations/useFuse' import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js'
import type { Avatar } from './avatar' import type { Avatar } from './avatar'
export interface Command { export interface Command {
id: string | number id: string | number
prefix?: string prefix?: string
@@ -11,6 +11,9 @@ export interface Command {
chip?: string chip?: string
disabled?: boolean disabled?: boolean
shortcuts?: string[] shortcuts?: string[]
group?: string
score?: number
matches?: (FuseSortFunctionMatch | FuseSortFunctionMatchList)[]
} }
export interface Group { export interface Group {