From 89c54ee2b913381723048f8f26fc92ff114b3209 Mon Sep 17 00:00:00 2001 From: Cheese <11363971+cheese-git@users.noreply.github.com> Date: Thu, 25 Nov 2021 18:41:25 +0800 Subject: [PATCH] fix(types): use proper array type when unwrapping reactive array (#4807) --- 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 93eb4fa89b..d37b6726ef 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -276,7 +276,7 @@ export type UnwrapRefSimple = T extends | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] ? T : T extends Array - ? { [K in keyof T]: UnwrapRefSimple } + ? Array> : T extends object & { [ShallowReactiveMarker]?: never } ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef -- 2.47.3