diff --git a/packages/core/src/componentComputed.ts b/packages/core/src/componentComputed.ts index 4c1a9c83..bf8ddca4 100644 --- a/packages/core/src/componentComputed.ts +++ b/packages/core/src/componentComputed.ts @@ -1,6 +1,6 @@ import { EMPTY_OBJ } from './utils' import { computed, stop, ComputedGetter } from '@vue/observer' -import { Component, ComponentClass } from './component' +import { ComponentClass, MountedComponent } from './component' import { ComponentComputedOptions } from './componentOptions' const extractionCache: WeakMap< @@ -30,7 +30,7 @@ export function getComputedOptions( } export function initializeComputed( - instance: Component, + instance: MountedComponent, computedOptions: ComponentComputedOptions | undefined ) { if (!computedOptions) { @@ -56,7 +56,7 @@ export function initializeComputed( ) } -export function teardownComputed(instance: Component) { +export function teardownComputed(instance: MountedComponent) { const handles = instance._computedGetters if (handles !== null) { for (const key in handles) { diff --git a/packages/core/src/componentProps.ts b/packages/core/src/componentProps.ts index 514f33ca..2a77c204 100644 --- a/packages/core/src/componentProps.ts +++ b/packages/core/src/componentProps.ts @@ -1,6 +1,5 @@ import { EMPTY_OBJ, nativeOnRE, vnodeHookRE } from './utils' import { - Component, ComponentClass, MountedComponent, FunctionalComponent @@ -13,7 +12,7 @@ import { PropOptions } from './componentOptions' -export function initializeProps(instance: Component, data: Data | null) { +export function initializeProps(instance: MountedComponent, data: Data | null) { const { props, attrs } = resolveProps( data, instance.$options.props,