mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt3): missing fixes for nuxt3/app (#631)
This commit is contained in:
parent
48458e4544
commit
3b4a0f19e3
6
packages/nuxt3/src/app/types/shims.d.ts
vendored
6
packages/nuxt3/src/app/types/shims.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
import { Component } from '@vue/runtime-core'
|
import { Component } from '@vue/runtime-core'
|
||||||
import { $Fetch } from 'ohmyfetch'
|
import { $Fetch } from 'ohmyfetch'
|
||||||
import { Nuxt } from '../dist'
|
import { NuxtApp } from '../nuxt'
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
// eslint-disable-next-line no-var
|
// eslint-disable-next-line no-var
|
||||||
@ -28,9 +28,9 @@ declare module '*.vue' {
|
|||||||
export default Component
|
export default Component
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'vue' {
|
declare module '@vue/runtime-core' {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
interface App<HostElement> {
|
interface App<HostElement> {
|
||||||
$nuxt: Nuxt
|
$nuxt: NuxtApp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user