Skip to content

Commit b9b603f

Browse files
authored
fix: add type to component instance (#828)
1 parent 704b2cd commit b9b603f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtimeContext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export interface ComponentPublicInstance {}
174174
*/
175175
export declare interface ComponentInternalInstance {
176176
uid: number
177-
// type: ConcreteComponent
177+
type: Record<string, unknown> // ConcreteComponent
178178
parent: ComponentInternalInstance | null
179179
root: ComponentInternalInstance
180180

@@ -239,6 +239,7 @@ export function toVue3ComponentInstance(
239239
const instance: ComponentInternalInstance = {
240240
proxy: vm,
241241
update: vm.$forceUpdate,
242+
type: vm.$options,
242243
uid: vm._uid,
243244

244245
// $emit is defined on prototype and it expected to be bound

0 commit comments

Comments
 (0)