fix(plugins): error in provides

This commit is contained in:
Benjamin Canac
2022-07-15 22:11:45 +02:00
parent 1d8958c2fc
commit 46ea467098
2 changed files with 38 additions and 34 deletions

View File

@@ -26,9 +26,11 @@ export default defineNuxtPlugin((nuxtApp) => {
return { return {
provide: { provide: {
clipboard: {
copy copy
} }
} }
}
}) })
declare module '#app' { declare module '#app' {

View File

@@ -25,6 +25,7 @@ export default defineNuxtPlugin(() => {
return { return {
provide: { provide: {
toast: {
addNotification, addNotification,
removeNotification, removeNotification,
success ({ title, description, timeout }: { title?: string, description?: string, timeout?: number } = {}) { success ({ title, description, timeout }: { title?: string, description?: string, timeout?: number } = {}) {
@@ -61,6 +62,7 @@ export default defineNuxtPlugin(() => {
} }
} }
} }
}
}) })
declare module '#app' { declare module '#app' {