From 236faf9cc6b5797a3f8a616e3bbaae43a8532430 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 24 Mar 2022 12:13:56 +0000 Subject: [PATCH] fix(bridge): add implemented runtime nuxt hooks (#3872) --- packages/bridge/src/runtime/app.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/bridge/src/runtime/app.ts b/packages/bridge/src/runtime/app.ts index 5dae2be02f..7a4ddc831d 100644 --- a/packages/bridge/src/runtime/app.ts +++ b/packages/bridge/src/runtime/app.ts @@ -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 + 'meta:register': (metaRenderers: any[]) => void | Promise +} + export interface NuxtAppCompat { nuxt2Context: Vue vue2App: ComponentOptions