revert: "fix(types): use proper array type when unwrapping reactive array (#4807)"

This reverts commit 89c54ee2b9.
This commit is contained in:
Evan You 2021-11-26 10:54:12 +08:00
parent 124570973d
commit 6d46b36e7c

View File

@ -276,7 +276,7 @@ export type UnwrapRefSimple<T> = T extends
| RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
? T
: T extends Array<any>
? Array<UnwrapRefSimple<T[number]>>
? { [K in keyof T]: UnwrapRefSimple<T[K]> }
: T extends object & { [ShallowReactiveMarker]?: never }
? {
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>