mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +01:00
chore(CommandPalette): improve types
This commit is contained in:
5
src/runtime/types/command-palette.d.ts
vendored
5
src/runtime/types/command-palette.d.ts
vendored
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user