diff --git a/packages/nuxt/src/app/types/augments.d.ts b/packages/nuxt/src/app/types/augments.d.ts index d57e80d0a5..3717d48d0c 100644 --- a/packages/nuxt/src/app/types/augments.d.ts +++ b/packages/nuxt/src/app/types/augments.d.ts @@ -51,23 +51,3 @@ declare module 'vue' { head?(nuxtApp: NuxtApp): UseHeadInput } } - -declare module '@vue/runtime-core' { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - interface App { - $nuxt: NuxtApp - } - interface ComponentCustomProperties { - $nuxt: NuxtApp - } -} - -declare module '@vue/runtime-dom' { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - interface App { - $nuxt: NuxtApp - } - interface ComponentCustomProperties { - $nuxt: NuxtApp - } -} diff --git a/packages/nuxt/src/components/templates.ts b/packages/nuxt/src/components/templates.ts index 8c89497c94..9707894ff1 100644 --- a/packages/nuxt/src/components/templates.ts +++ b/packages/nuxt/src/components/templates.ts @@ -125,14 +125,6 @@ interface _GlobalComponents { ${componentTypes.map(([pascalName, type]) => ` 'Lazy${pascalName}': ${type}`).join('\n')} } -declare module '@vue/runtime-core' { - export interface GlobalComponents extends _GlobalComponents { } -} - -declare module '@vue/runtime-dom' { - export interface GlobalComponents extends _GlobalComponents { } -} - declare module 'vue' { export interface GlobalComponents extends _GlobalComponents { } } diff --git a/packages/nuxt/src/core/templates.ts b/packages/nuxt/src/core/templates.ts index 47abc77410..3410b6699f 100644 --- a/packages/nuxt/src/core/templates.ts +++ b/packages/nuxt/src/core/templates.ts @@ -147,14 +147,6 @@ declare module '#app' { } } -declare module '@vue/runtime-core' { - interface ComponentCustomProperties extends NuxtAppInjections { } -} - -declare module '@vue/runtime-dom' { - interface ComponentCustomProperties extends NuxtAppInjections { } -} - declare module 'vue' { interface ComponentCustomProperties extends NuxtAppInjections { } } diff --git a/packages/schema/src/config/typescript.ts b/packages/schema/src/config/typescript.ts index 2a4feeb67f..402cd007fd 100644 --- a/packages/schema/src/config/typescript.ts +++ b/packages/schema/src/config/typescript.ts @@ -45,7 +45,6 @@ export default defineUntypedSchema({ 'vue', '@vue/runtime-core', '@vue/compiler-sfc', - '@vue/runtime-dom', 'vue-router', 'vue-router/auto-routes', 'unplugin-vue-router/client',