From b9b603f7baff3335fc85a6ee7e470ee19bb30612 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 7 Oct 2021 07:28:01 +0200 Subject: [PATCH] fix: add `type` to component instance (#828) --- src/runtimeContext.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtimeContext.ts b/src/runtimeContext.ts index f24c5d4a..15c8eb3b 100644 --- a/src/runtimeContext.ts +++ b/src/runtimeContext.ts @@ -174,7 +174,7 @@ export interface ComponentPublicInstance {} */ export declare interface ComponentInternalInstance { uid: number - // type: ConcreteComponent + type: Record // ConcreteComponent parent: ComponentInternalInstance | null root: ComponentInternalInstance @@ -239,6 +239,7 @@ export function toVue3ComponentInstance( const instance: ComponentInternalInstance = { proxy: vm, update: vm.$forceUpdate, + type: vm.$options, uid: vm._uid, // $emit is defined on prototype and it expected to be bound