From 6a22ad2fb2d862d41781d7d0df04d773697c0e25 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 18 Aug 2019 22:48:46 -0400 Subject: [PATCH] types: simplify ref type --- packages/reactivity/src/ref.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 6c2e134ea..d2f5a4e45 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -9,7 +9,7 @@ export interface Ref { value: UnwrapNestedRefs } -export type UnwrapNestedRefs = T extends Ref ? Ref : UnwrapRef +export type UnwrapNestedRefs = T extends Ref ? T : UnwrapRef const convert = (val: any): any => (isObject(val) ? reactive(val) : val)