fix(types): use proper array type when unwrapping reactive array (#4807)
This commit is contained in:
parent
3bdd03b152
commit
89c54ee2b9
@ -276,7 +276,7 @@ export type UnwrapRefSimple<T> = T extends
|
|||||||
| RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
|
| RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
|
||||||
? T
|
? T
|
||||||
: T extends Array<any>
|
: T extends Array<any>
|
||||||
? { [K in keyof T]: UnwrapRefSimple<T[K]> }
|
? Array<UnwrapRefSimple<T[number]>>
|
||||||
: T extends object & { [ShallowReactiveMarker]?: never }
|
: T extends object & { [ShallowReactiveMarker]?: never }
|
||||||
? {
|
? {
|
||||||
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>
|
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user