type: improve typing (#177)

This commit is contained in:
扩散性百万甜面包
2019-10-10 02:01:53 +08:00
committed by Evan You
parent 8f1475b8dd
commit def27239bd
5 changed files with 9 additions and 11 deletions

View File

@@ -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> {