chore: migrate to @nuxt/module-builder

This commit is contained in:
Benjamin Canac
2022-01-21 14:32:11 +01:00
parent 78013a7b25
commit 39bba82079
9 changed files with 1145 additions and 503 deletions

17
src/runtime/types/toast.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
export interface ToastNotification {
id: string
title: string
description: string
type: string
icon?: string
timeout: number
undo?: Function
callback?: Function
}
export interface ToastPlugin {
addNotification: (notification: Partial<Notification>) => Notification
removeNotification: (id: string) => void
success: (options: { title?: string, description?: string }) => void
error: (options: { title?: string, description?: string }) => void
}