Skip to content

Commit 92991a1

Browse files
committed
fix(nuxt): hook syntax for provider register
1 parent 3a405e7 commit 92991a1

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { defineNuxtPlugin } from '#app'
22
import PDFEASY from 'pdfeasy'
33

4-
export default defineNuxtPlugin(() => {
5-
return {
6-
provide: {
7-
pdf: PDFEASY as typeof PDFEASY
8-
}
9-
}
4+
export default defineNuxtPlugin(({ provide }) => {
5+
provide('pdf', PDFEASY as typeof PDFEASY)
106
})

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)