mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-01 13:03:29 +00:00
fix(bridge): add implemented runtime nuxt hooks (#3872)
This commit is contained in:
parent
993bc7c8a1
commit
236faf9cc6
@ -9,8 +9,6 @@ export const isVue3 = false
|
|||||||
|
|
||||||
export const defineNuxtComponent = defineComponent
|
export const defineNuxtComponent = defineComponent
|
||||||
|
|
||||||
export interface RuntimeNuxtHooks { }
|
|
||||||
|
|
||||||
export interface VueAppCompat {
|
export interface VueAppCompat {
|
||||||
component: Vue['component'],
|
component: Vue['component'],
|
||||||
config: {
|
config: {
|
||||||
@ -26,6 +24,12 @@ export interface VueAppCompat {
|
|||||||
version: string
|
version: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RuntimeNuxtHooks {
|
||||||
|
'vue:setup': () => void
|
||||||
|
'app:mounted': (app: VueAppCompat) => void | Promise<void>
|
||||||
|
'meta:register': (metaRenderers: any[]) => void | Promise<void>
|
||||||
|
}
|
||||||
|
|
||||||
export interface NuxtAppCompat {
|
export interface NuxtAppCompat {
|
||||||
nuxt2Context: Vue
|
nuxt2Context: Vue
|
||||||
vue2App: ComponentOptions<Vue>
|
vue2App: ComponentOptions<Vue>
|
||||||
|
Loading…
Reference in New Issue
Block a user