From: Cheese <11363971+cheese-git@users.noreply.github.com> Date: Thu, 25 Nov 2021 10:41:25 +0000 (+0800) Subject: fix(types): use proper array type when unwrapping reactive array (#4807) X-Git-Tag: v3.2.23~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89c54ee2b913381723048f8f26fc92ff114b3209;p=thirdparty%2Fvuejs%2Fcore.git fix(types): use proper array type when unwrapping reactive array (#4807) --- 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