From feef9c47ef65abc2011cdf059e86d63f650f793e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20LeBlanc?= Date: Sat, 21 Dec 2024 18:55:50 -0500 Subject: [PATCH] doc: remove usage of any in TypeScript examples --- docs/content/2.get-started/1.guide/2.setup.md | 4 ++-- docs/content/2.get-started/1.guide/3.migration-guide.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) })