mirror of https://github.com/nuxt/nuxt.git
fix(nuxt): only augment `vue`, not sub-packages (#28542)
This commit is contained in:
parent
f85cb4d6ae
commit
4972da0c12
|
@ -51,23 +51,3 @@ declare module 'vue' {
|
||||||
head?(nuxtApp: NuxtApp): UseHeadInput
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -125,14 +125,6 @@ interface _GlobalComponents {
|
||||||
${componentTypes.map(([pascalName, type]) => ` 'Lazy${pascalName}': ${type}`).join('\n')}
|
${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' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents extends _GlobalComponents { }
|
export interface GlobalComponents extends _GlobalComponents { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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' {
|
declare module 'vue' {
|
||||||
interface ComponentCustomProperties extends NuxtAppInjections { }
|
interface ComponentCustomProperties extends NuxtAppInjections { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,6 @@ export default defineUntypedSchema({
|
||||||
'vue',
|
'vue',
|
||||||
'@vue/runtime-core',
|
'@vue/runtime-core',
|
||||||
'@vue/compiler-sfc',
|
'@vue/compiler-sfc',
|
||||||
'@vue/runtime-dom',
|
|
||||||
'vue-router',
|
'vue-router',
|
||||||
'vue-router/auto-routes',
|
'vue-router/auto-routes',
|
||||||
'unplugin-vue-router/client',
|
'unplugin-vue-router/client',
|
||||||
|
|
Loading…
Reference in New Issue