Skip to content

Commit

Permalink
fix(nuxt): only augment vue, not sub-packages (#28542)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 16, 2024
1 parent c55ca12 commit 60948c8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
20 changes: 0 additions & 20 deletions packages/nuxt/src/app/types/augments.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HostElement> {
$nuxt: NuxtApp
}
interface ComponentCustomProperties {
$nuxt: NuxtApp
}
}

declare module '@vue/runtime-dom' {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface App<HostElement> {
$nuxt: NuxtApp
}
interface ComponentCustomProperties {
$nuxt: NuxtApp
}
}
8 changes: 0 additions & 8 deletions packages/nuxt/src/components/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
}
Expand Down
8 changes: 0 additions & 8 deletions packages/nuxt/src/core/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,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 { }
}
Expand Down
1 change: 0 additions & 1 deletion packages/schema/src/config/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 60948c8

Please sign in to comment.