mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(types): use (...args: any[]) => void instead of Function
This commit is contained in:
@@ -8,5 +8,5 @@ export type AlertColor = keyof typeof alert.color | ExtractDeepKey<AppConfig, ['
|
||||
export type AlertVariant = keyof typeof alert.variant | ExtractDeepKey<AppConfig, ['ui', 'alert', 'variant']> | NestedKeyOf<typeof alert.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'alert', 'color']>>
|
||||
|
||||
export interface AlertAction extends Button {
|
||||
click?: Function
|
||||
click?: (...args: any[]) => void
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ export interface Group {
|
||||
active?: string
|
||||
inactive?: string
|
||||
commands?: Command[]
|
||||
search?: Function
|
||||
filter?: Function
|
||||
search?: (...args: any[]) => any[] | Promise<any[]>
|
||||
filter?: (...args: any[]) => Command[]
|
||||
static?: Boolean
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ export interface DropdownItem extends NuxtLinkProps {
|
||||
shortcuts?: string[]
|
||||
disabled?: boolean
|
||||
class?: string
|
||||
click?: Function
|
||||
click?: (...args: any[]) => void
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ export interface HorizontalNavigationLink extends Link {
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: Avatar
|
||||
click?: Function
|
||||
click?: (...args: any[]) => void
|
||||
badge?: string | number | Badge
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import colors from '#ui-colors'
|
||||
export type NotificationColor = 'gray' | typeof colors[number]
|
||||
|
||||
export interface NotificationAction extends Button {
|
||||
click?: Function
|
||||
click?: (...args: any[]) => void
|
||||
}
|
||||
|
||||
export interface Notification {
|
||||
@@ -17,8 +17,8 @@ export interface Notification {
|
||||
closeButton?: Button
|
||||
timeout: number
|
||||
actions?: NotificationAction[]
|
||||
click?: Function
|
||||
callback?: Function
|
||||
click?: (...args: any[]) => void
|
||||
callback?: (...args: any[]) => void
|
||||
color?: NotificationColor
|
||||
ui?: any
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ export interface VerticalNavigationLink extends Link {
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: Avatar
|
||||
click?: Function
|
||||
click?: (...args: any[]) => void
|
||||
badge?: string | number | Badge
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user