We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d50d8 commit 0c42a6dCopy full SHA for 0c42a6d
packages/reactivity/src/ref.ts
@@ -98,10 +98,8 @@ export type UnwrapRef<T> = {
98
object: { [K in keyof T]: UnwrapRef<T[K]> }
99
}[T extends ComputedRef<any>
100
? 'cRef'
101
- : T extends Ref
102
- ? 'ref'
103
- : T extends Array<any>
104
- ? 'array'
105
- : T extends Function | CollectionTypes | BaseTypes
106
- ? 'ref' // bail out on types that shouldn't be unwrapped
107
- : T extends object ? 'object' : 'ref']
+ : T extends Array<any>
+ ? 'array'
+ : T extends Ref | Function | CollectionTypes | BaseTypes
+ ? 'ref' // bail out on types that shouldn't be unwrapped
+ : T extends object ? 'object' : 'ref']
0 commit comments