From c69ca88c048ee6b4747c3fa4f73befa78e921c9c Mon Sep 17 00:00:00 2001 From: Pick Date: Wed, 1 Jul 2020 00:02:21 +0800 Subject: [PATCH] refactor(types): simplify UnwrapRefSimple (#1466) --- 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 ee3fd4f5..57bf5755 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -168,7 +168,7 @@ type UnwrapRefSimple = T extends | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] ? T : T extends Array - ? { [K in keyof T]: T[K] extends Ref ? T[K] : UnwrapRefSimple } + ? { [K in keyof T]: UnwrapRefSimple } : T extends object ? UnwrappedObject : T // Extract all known symbols from an object