diff --git a/docs/src/guide/definitions.md b/docs/src/guide/definitions.md index 84e768398e..6e7046d44d 100644 --- a/docs/src/guide/definitions.md +++ b/docs/src/guide/definitions.md @@ -309,7 +309,7 @@ declare module 'nuxt/app' { ### ComponentCustomProperties ```ts -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $booster: { targetFormats: string[]; diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index b7563e224a..e86dcb9d2e 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -1,7 +1,6 @@ import { defineNuxtConfig } from 'nuxt/config'; import { readPackage } from 'read-pkg'; import svgLoader from 'vite-svg-loader'; -import checker from 'vite-plugin-checker'; import type { NuxtConfig } from '@nuxt/schema'; import * as postcssFunctions from './postcss/functions'; @@ -68,9 +67,6 @@ export default defineNuxtConfig({ plugins: [ svgLoader({ defaultImport: 'component' // or 'raw' - }), - checker({ - vueTsc: true }) ] }, @@ -417,6 +413,7 @@ export default defineNuxtConfig({ modules: ['@nuxt/eslint', '../src/module'], typescript: { + typeCheck: true, tsConfig: { include: ['../../test/**/*.ts'] } diff --git a/src/types/module.ts b/src/types/module.ts index 2a55ddab29..c49c4288fd 100644 --- a/src/types/module.ts +++ b/src/types/module.ts @@ -2,6 +2,7 @@ import type { Nuxt, ViteConfig } from 'nuxt/schema'; import type { Manifest } from 'vue-bundle-renderer'; import type { FontOption } from './font'; import type { ImageModifiers } from '@nuxt/image'; +import type { Directive } from 'vue'; export type HTMLCrossOriginAttribute = 'anonymous' | 'use-credentials' | ''; export type CrossOrigin = boolean | HTMLCrossOriginAttribute | undefined; @@ -154,7 +155,7 @@ declare module 'nuxt/app' { } } -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $booster: { targetFormats: string[];