Skip to content

Commit 0794928

Browse files
danielroeKamsou
authored andcommitted
fix(nuxt): only augment vue, not sub-packages (nuxt#28542)
1 parent edb058a commit 0794928

File tree

4 files changed

+0
-37
lines changed

4 files changed

+0
-37
lines changed

packages/nuxt/src/app/types/augments.d.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,3 @@ declare module 'vue' {
5151
head?(nuxtApp: NuxtApp): UseHeadInput
5252
}
5353
}
54-
55-
declare module '@vue/runtime-core' {
56-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
57-
interface App<HostElement> {
58-
$nuxt: NuxtApp
59-
}
60-
interface ComponentCustomProperties {
61-
$nuxt: NuxtApp
62-
}
63-
}
64-
65-
declare module '@vue/runtime-dom' {
66-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
67-
interface App<HostElement> {
68-
$nuxt: NuxtApp
69-
}
70-
interface ComponentCustomProperties {
71-
$nuxt: NuxtApp
72-
}
73-
}

packages/nuxt/src/components/templates.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,6 @@ interface _GlobalComponents {
125125
${componentTypes.map(([pascalName, type]) => ` 'Lazy${pascalName}': ${type}`).join('\n')}
126126
}
127127
128-
declare module '@vue/runtime-core' {
129-
export interface GlobalComponents extends _GlobalComponents { }
130-
}
131-
132-
declare module '@vue/runtime-dom' {
133-
export interface GlobalComponents extends _GlobalComponents { }
134-
}
135-
136128
declare module 'vue' {
137129
export interface GlobalComponents extends _GlobalComponents { }
138130
}

packages/nuxt/src/core/templates.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,6 @@ declare module '#app' {
147147
}
148148
}
149149
150-
declare module '@vue/runtime-core' {
151-
interface ComponentCustomProperties extends NuxtAppInjections { }
152-
}
153-
154-
declare module '@vue/runtime-dom' {
155-
interface ComponentCustomProperties extends NuxtAppInjections { }
156-
}
157-
158150
declare module 'vue' {
159151
interface ComponentCustomProperties extends NuxtAppInjections { }
160152
}

packages/schema/src/config/typescript.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export default defineUntypedSchema({
4545
'vue',
4646
'@vue/runtime-core',
4747
'@vue/compiler-sfc',
48-
'@vue/runtime-dom',
4948
'vue-router',
5049
'vue-router/auto-routes',
5150
'unplugin-vue-router/client',

0 commit comments

Comments
 (0)