mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +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 interface RuntimeNuxtHooks { }
|
||||
|
||||
export interface VueAppCompat {
|
||||
component: Vue['component'],
|
||||
config: {
|
||||
@ -26,6 +24,12 @@ export interface VueAppCompat {
|
||||
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 {
|
||||
nuxt2Context: Vue
|
||||
vue2App: ComponentOptions<Vue>
|
||||
|
Loading…
Reference in New Issue
Block a user