Skip to content

Commit

Permalink
chore(CommandPalette): improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 26, 2022
1 parent 08ff6e6 commit fc951e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/types/command-palette.d.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,6 +11,9 @@ export interface Command {
chip?: string
disabled?: boolean
shortcuts?: string[]
group?: string
score?: number
matches?: (FuseSortFunctionMatch | FuseSortFunctionMatchList)[]
}

export interface Group {
Expand Down

0 comments on commit fc951e2

Please sign in to comment.