From: Evan You Date: Fri, 26 Nov 2021 02:54:12 +0000 (+0800) Subject: revert: "fix(types): use proper array type when unwrapping reactive array (#4807)" X-Git-Tag: v3.2.23~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d46b36e7c781a839c1bc3ac3082813fbfac1976;p=thirdparty%2Fvuejs%2Fcore.git revert: "fix(types): use proper array type when unwrapping reactive array (#4807)" This reverts commit 89c54ee2b913381723048f8f26fc92ff114b3209. --- diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index d37b6726ef..93eb4fa89b 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 - ? Array> + ? { [K in keyof T]: UnwrapRefSimple } : T extends object & { [ShallowReactiveMarker]?: never } ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef