feat(reactivity): ref(Ref) should return Ref (#180)

This commit is contained in:
相学长
2019-10-10 23:34:42 +08:00
committed by Evan You
parent 80f5cb2700
commit cbb4b19cfb
4 changed files with 27 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
import { effect, ReactiveEffect, activeReactiveEffectStack } from './effect'
import { Ref, refSymbol, UnwrapNestedRefs } from './ref'
import { Ref, refSymbol, UnwrapRef } from './ref'
import { isFunction, NOOP } from '@vue/shared'
export interface ComputedRef<T> extends WritableComputedRef<T> {
readonly value: UnwrapNestedRefs<T>
readonly value: UnwrapRef<T>
}
export interface WritableComputedRef<T> extends Ref<T> {