chore: improve types and imports

This commit is contained in:
Benjamin Canac
2022-07-21 23:33:06 +02:00
parent 7b3263a621
commit 6b813bd3b3
26 changed files with 93 additions and 62 deletions

10
src/runtime/types/avatar.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
export interface Avatar {
src: string
alt: string
text: string
size: string
rounded: boolean
chip: boolean
chipVariant: string
chipPosition: string
}

View File

@@ -1,5 +1,6 @@
import type { Ref, ComputedRef } from 'vue'
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
import type { Avatar } from './avatar'
export interface Command {
prefix?: string
@@ -7,7 +8,7 @@ export interface Command {
label: string
icon?: string
iconClass?: string
avatar?: string
avatar?: Partial<Avatar>
chip?: string
disabled?: boolean
shortcuts?: string[]