fix(bridge): add implemented runtime nuxt hooks (#3872)

This commit is contained in:
Daniel Roe 2022-03-24 12:13:56 +00:00 committed by GitHub
parent 993bc7c8a1
commit 236faf9cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>