diff --git a/packages/reactivity/src/computed.ts b/packages/reactivity/src/computed.ts index 42e1c67b..f06eb0a8 100644 --- a/packages/reactivity/src/computed.ts +++ b/packages/reactivity/src/computed.ts @@ -1,16 +1,13 @@ import { effect, ReactiveEffect, activeReactiveEffectStack } from './effect' -import { UnwrapNestedRefs } from './ref' +import { Ref, UnwrapNestedRefs } from './ref' import { isFunction } from '@vue/shared' -export interface ComputedRef { - _isRef: true +export interface ComputedRef extends Ref { readonly value: UnwrapNestedRefs readonly effect: ReactiveEffect } -export interface WritableComputedRef { - _isRef: true - value: UnwrapNestedRefs +export interface WritableComputedRef extends Ref { readonly effect: ReactiveEffect }