type: improve typing (#177)
This commit is contained in:
@@ -2,9 +2,8 @@ import { effect, ReactiveEffect, activeReactiveEffectStack } from './effect'
|
||||
import { Ref, refSymbol, UnwrapNestedRefs } from './ref'
|
||||
import { isFunction, NOOP } from '@vue/shared'
|
||||
|
||||
export interface ComputedRef<T> extends Ref<T> {
|
||||
export interface ComputedRef<T> extends WritableComputedRef<T> {
|
||||
readonly value: UnwrapNestedRefs<T>
|
||||
readonly effect: ReactiveEffect
|
||||
}
|
||||
|
||||
export interface WritableComputedRef<T> extends Ref<T> {
|
||||
|
||||
Reference in New Issue
Block a user