Skip to content

Commit 89c54ee

Browse files
authored
fix(types): use proper array type when unwrapping reactive array (#4807)
1 parent 3bdd03b commit 89c54ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/ref.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export type UnwrapRefSimple<T> = T extends
276276
| RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
277277
? T
278278
: T extends Array<any>
279-
? { [K in keyof T]: UnwrapRefSimple<T[K]> }
279+
? Array<UnwrapRefSimple<T[number]>>
280280
: T extends object & { [ShallowReactiveMarker]?: never }
281281
? {
282282
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>

0 commit comments

Comments
 (0)