From: Evan You Date: Mon, 19 Aug 2019 02:48:46 +0000 (-0400) Subject: types: simplify ref type X-Git-Tag: v3.0.0-alpha.0~922 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a22ad2fb2d862d41781d7d0df04d773697c0e25;p=thirdparty%2Fvuejs%2Fcore.git types: simplify ref type --- diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 6c2e134ea2..d2f5a4e455 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)