diff --git a/docs/content/2.get-started/1.guide/2.setup.md b/docs/content/2.get-started/1.guide/2.setup.md index 14a3f7bf..88462bd8 100644 --- a/docs/content/2.get-started/1.guide/2.setup.md +++ b/docs/content/2.get-started/1.guide/2.setup.md @@ -49,10 +49,10 @@ app.use(vfm).mount('#app') ### Nuxt 3 ```ts [./plugins/vue-final-modal.ts] -import { createVfm } from 'vue-final-modal' +import { createVfm, type Vfm } from 'vue-final-modal' export default defineNuxtPlugin((nuxtApp) => { - const vfm = createVfm() as any + const vfm = createVfm() as Vfm nuxtApp.vueApp.use(vfm) }) diff --git a/docs/content/2.get-started/1.guide/3.migration-guide.md b/docs/content/2.get-started/1.guide/3.migration-guide.md index a6c442e2..1994999a 100644 --- a/docs/content/2.get-started/1.guide/3.migration-guide.md +++ b/docs/content/2.get-started/1.guide/3.migration-guide.md @@ -48,10 +48,10 @@ export default defineNuxtPlugin(nuxtApp => { Will be re-written as this: ```ts [./plugins/vue-final-modal.ts] -import { createVfm } from 'vue-final-modal' +import { createVfm, type Vfm } from 'vue-final-modal' export default defineNuxtPlugin((nuxtApp) => { - const vfm = createVfm() as any + const vfm = createVfm() as Vfm nuxtApp.vueApp.use(vfm) })