mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
chore: improve types (#115)
* wip: improve types * feat: improve types * Apply suggestions from code review Co-authored-by: Sylvain Marroufin <marroufin.sylvain@gmail.com> * chore: update * chore: enable ci typecheck * chore: fix Co-authored-by: Sylvain Marroufin <marroufin.sylvain@gmail.com>
This commit is contained in:
11
src/runtime/types/toast.d.ts
vendored
11
src/runtime/types/toast.d.ts
vendored
@@ -1,3 +1,8 @@
|
||||
export interface ToastNotificationAction {
|
||||
label: string,
|
||||
click: Function
|
||||
}
|
||||
|
||||
export interface ToastNotification {
|
||||
id: string
|
||||
title: string
|
||||
@@ -5,10 +10,8 @@ export interface ToastNotification {
|
||||
type: string
|
||||
icon?: string
|
||||
timeout: number
|
||||
actions?: {
|
||||
label: string,
|
||||
click: Function
|
||||
}[]
|
||||
actions?: ToastNotificationAction[]
|
||||
click?: Function
|
||||
callback?: Function
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user