Skip to content

Commit

Permalink
fix: add type to component instance (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 7, 2021
1 parent 704b2cd commit b9b603f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtimeContext.ts
Expand Up @@ -174,7 +174,7 @@ export interface ComponentPublicInstance {}
*/
export declare interface ComponentInternalInstance {
uid: number
// type: ConcreteComponent
type: Record<string, unknown> // ConcreteComponent
parent: ComponentInternalInstance | null
root: ComponentInternalInstance

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b9b603f

Please sign in to comment.