]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(types): simplify UnwrapRefSimple (#1466)
authorPick <pickchen@tencent.com>
Tue, 30 Jun 2020 16:02:21 +0000 (00:02 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 16:02:21 +0000 (12:02 -0400)
packages/reactivity/src/ref.ts

index ee3fd4f5ed3f546fc999b192d1de91c681c55496..57bf5755b5c375bf5361240aa0c1f3176055ef7e 100644 (file)
@@ -168,7 +168,7 @@ type UnwrapRefSimple<T> = T extends
   | RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
   ? T
   : T extends Array<any>
-    ? { [K in keyof T]: T[K] extends Ref ? T[K] : UnwrapRefSimple<T[K]> }
+    ? { [K in keyof T]: UnwrapRefSimple<T[K]> }
     : T extends object ? UnwrappedObject<T> : T
 
 // Extract all known symbols from an object