mirror of https://github.com/nuxt/nuxt.git
fix(bridge): type `useNuxtApp()` (#3057)
This commit is contained in:
parent
16167264e3
commit
c82d3533bc
|
@ -66,7 +66,7 @@ export function defineNuxtPlugin (plugin: (nuxtApp: NuxtAppCompat) => void): (ct
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useNuxtApp = () => {
|
export const useNuxtApp = (): NuxtAppCompat => {
|
||||||
const vm = getCurrentInstance()
|
const vm = getCurrentInstance()
|
||||||
|
|
||||||
if (!vm) {
|
if (!vm) {
|
||||||
|
|
Loading…
Reference in New Issue